【发布时间】:2015-04-09 16:29:43
【问题描述】:
是否有直接的方法来测试加密会话 (SSL) Cookie 中安全属性的值,例如,使用 IE 11?我需要确保将 Secure Attribute 设置为“True”....
注意:我编写了如何在 ASP.NET 会话 Cookie 上设置安全标志的答案?在我的 ASP.net-MVC 项目的 web.config 中。答案可以在这里找到:
How can I set the Secure flag on an ASP.NET Session Cookie?
但是,我想知道如何直接测试结果(即在 IE 中——一直想这么说!)而不仅仅依赖于 web.config 是否正确。
谢谢。
【问题讨论】:
-
使用如何在 ASP.NET 会话 Cookie 上设置安全标志中描述的方法? stackoverflow.com/questions/1442863/… 确实有效;但我仍然不知道如何直接验证这一点。其他人使用扫描工具确定它确实有效。
标签: testing ssl cookies attributes internet-explorer-11