Set HttpOnly for classic ASP cookies
<p>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:</p>

<pre><code>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", ""&amp;CStr(Request.ServerVariables("HTTP_COOKIE"))&amp;";path=/;HttpOnly"&amp;""

End Sub
</code></pre>

<p>Any Idea?</p>