How to secure classic ASP ASPSESSIONID cookie?

后端 未结 4 1879
太阳男子
太阳男子 2021-01-04 22:31

Is there a way to mark classic ASP ASPSESSIONID* cookies as secure? It appears that the ASP ISAPI handler adds that session id cookie after my page is done rendering so put

4条回答
  •  走了就别回头了
    2021-01-04 23:26

    [Edit: You can ignore the following. I just realized that you were talking about ASPSESSIONID.}

    There is built-in support for secure cookies.

    See http://msdn.microsoft.com/en-us/library/ms524757.aspx

    Example (for ASP.Net, not Classic ASP):

    Response.Cookies("setSecure") = "someValue"
    Response.Cookies("setSecure").Secure = true
    

提交回复
热议问题