asp.net - 我们是否需要保护 cookie .ASPXANONYMOUS

标签 asp.net security cookies

您能否告知我们是否需要保护 cookie.ASPXANONYMOUS 的安全?

谢谢。

最佳答案

如果您确定仅应将匿名用户 cookie 保护到 SSL,那么您可以在 web.config 中使用 anonymousIdentification 进行调整。元素。

<anonymousIdentification  
   enabled="true"
   cookieRequireSSL="true"
/>

cookieRequireSSL
Specifies whether the cookie requires a Secure Sockets Layer (SSL) connection when it is transmitted to the client. Because ASP.NET sets the authentication cookie property, Secure, the client does not return the cookie unless an SSL connection is in use. The default is false.

关于asp.net - 我们是否需要保护 cookie .ASPXANONYMOUS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20124449/

相关文章:

php - Laravel 4 记住我过期时间

javascript - 点击时设置 Cookie

javascript - Cookie、对象和 JSON

c# - 为什么需要在 webServices 中给出 dataTable 名称

c# - Paypal 在 asp.net 中的集成与 c#

c# - 为 iis 创建池

macos - 如何将我的应用程序签名为 "Identified Apple developer"?

php - mysql 事务不适用于 innodb 表

asp.net - 常见的网络攻击

iphone - 我应该如何将信用卡信息从 iPhone 应用程序发布到 Windows 服务器?