是否有直接的方法来测试加密 session (SSL) Cookie 中安全属性的值,例如使用 IE 11?我需要确保安全属性设置为“真”......
注意:我编写了 How can I set the Secure flag on an ASP.NET Session Cookie? 的答案。在我的 ASP.net-MVC 项目的 web.config 中。答案可以在这里找到:
How can I set the Secure flag on an ASP.NET Session Cookie?
但是,我想知道如何直接测试结果(即在 IE 中——一直想这样说!)而不仅仅是依赖 web.config 是否正确。
谢谢。
最佳答案
在 Fiddler 或您的开发工具的网络 atb 中查看 HTTP 响应中的 Set-Cookie
header ,并确保它包含 Secure
标志。
关于testing - 有没有直接的方法来测试加密 session (SSL) Cookie 中的安全属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28418152/