【问题标题】:Is there a direct way to test the Secure Attribute in Encrypted Session (SSL) Cookie是否有直接的方法来测试加密会话 (SSL) Cookie 中的安全属性
【发布时间】: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


【解决方案1】:

查看 Fiddler 或您的开发工具的网络 atb 中的 HTTP 响应中的 Set-Cookie 标头,并确保它包含 Secure 标志。

【讨论】:

    猜你喜欢
    • 2013-09-10
    • 2023-03-31
    • 2018-11-15
    • 1970-01-01
    • 2011-06-11
    • 1970-01-01
    • 2021-12-03
    • 2017-05-30
    • 2012-04-12
    相关资源
    最近更新 更多