I amtrying to add HttpOnly to my Classic ASP cookies. I have tried all the solutions that I could find but seems like they are not working in my situation. Here is the code that I have to set up cookies:
Sub StoreCookieValue(byVal strParameter, byVal strValue)
Select Case UCase(strParameter)
'Case "USERID": Response.Cookies("SessionTestCom")("UserID") = strValue
' gstrUserID = strValue
Case "SESSID": Response.Cookies("SessionTestCom")("SessID") = strValue
gintSessionID = strValue
Case "ACCESSNUMBER": Response.Cookies("SessionTestCom")("AccessNumber") = strValue
gstrAccessNumber = strValue
Case "USERIDKEY" : Response.Cookies("SessionTestCom")("UserIdKey") = strValue
gstrAccessNumber = strValue
End Select
Response.Cookies("SessionTestCom").Path = "/"
Response.Cookies("SessionTestCom").Secure = True
Response.AddHeader "Set-Cookie", ""&CStr(Request.ServerVariables("HTTP_COOKIE"))&";path=/;HttpOnly"&""
End Sub
Any Idea?