testing - 有没有直接的方法来测试加密 session (SSL) Cookie 中的安全属性

标签 testing ssl cookies attributes internet-explorer-11

是否有直接的方法来测试加密 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/

相关文章:

android - 使用 TestNG 进行 android 测试 - 合适吗?潜在问题?

testing - 什么是代码覆盖率以及如何衡量它?

c - 如何在 C 中通过 SSL 使用 POP3

javascript - Jquery Ajax 调用不设置 cookie

c - 测试静态变量

java - 自动化测试框架

c - 通过 c 中的 ssl channel 接收一半消息

qt - 在 Ubuntu 16.04.1 上使用 OpenSSL 构建 Qt 失败

java - Vaadin 7 示例在部署到 tomcat 7 时显示 "Cookies Disabled"消息

http - 可以在 'some' 子域之间共享 cookie 吗?