How exactly do you configure httpOnlyCookies in ASP.NET?

后端 未结 4 915
暖寄归人
暖寄归人 2020-12-13 06:28

Inspired by this CodingHorror article, \"Protecting Your Cookies: HttpOnly\"

How do you set this property? Somewhere in the web config?

4条回答
  •  半阙折子戏
    2020-12-13 06:51

    If you're using ASP.NET 2.0 or greater, you can turn it on in the Web.config file. In the section, add the following line:

    
    

提交回复
热议问题