Cookies 为经典ASP Cookie设置HttpOnly
我正在尝试将HttpOnly添加到我的经典ASP Cookie中。我已经尝试了所有我能找到的解决方案,但似乎它们在我的情况下不起作用。 以下是我必须设置cookie的代码:Cookies 为经典ASP Cookie设置HttpOnly,cookies,asp-classic,Cookies,Asp Classic,我正在尝试将HttpOnly添加到我的经典ASP Cookie中。我已经尝试了所有我能找到的解决方案,但似乎它们在我的情况下不起作用。 以下是我必须设置cookie的代码: Sub StoreCookieValue(byVal strParameter, byVal strValue) Select Case UCase(strParameter) 'Case "USERID": Response.Cookies("SessionTestCom")("UserID
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
有什么想法吗?好的,这是我应用的解决方案,它很有效
我将重写规则添加到iOS中,它修复了它。你说得对。祝你的努力好运。。。。这些评论毫无意义。如果你们要删除一段对话,请将其全部删除。:)可能重复的