asp.net - Forms Auth requireSSL 和 Https

标签 asp.net iis ssl

如果我的登录页面是 https,Web 配置的表单选项卡中的“requireSSL”是否为真是否重要?

目前我正在使用 IIS 将页面重定向到 HTTPS。当我设置 requiressl 时,它似乎会导致问题。

有人可以正确看待这两种设置吗?谢谢

最佳答案

如果您在服务器级别设置 https,则 requireSsl 无关紧要(将其设置为打开或关闭应该没有任何区别)。设置需要 https 后,按照本文所述设置重定向:

http://www.jppinto.com/2009/01/automatically-redirect-http-requests-to-https-on-iis-6/

==== 引用 http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.requiressl.aspx

您可以在 ASP.NET 应用程序的 Web.config 文件中指定是否需要 SSL(安全套接字层)通过设置 requireSSL 属性将表单例份验证 cookie 返回给服务器

关于asp.net - Forms Auth requireSSL 和 Https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2531360/

相关文章:

asp.net - System.Net.Mail.SmtpFailedRecipientException : Mailbox unavailable.

visual-studio - 生成 OData 客户端时忽略 SSL 错误

php - 关于通过电子邮件发送信用卡详细信息的建议

asp.net - GridView 格式

c# - ASP.NET MVC - 初始加载缓慢

asp.net-mvc - asp.net mvc 中的动态子域

asp.net - 在 NT AUTHORITY\NETWORK SERVICE 下运行池是否安全?

maven - wildfly maven插件https证书问题

asp.net - Azure Web App(MVC 6)持续部署失败

asp.net - 在每个 Controller 的ASP.NET WebAPI上强制使用CamelCase