代码之家  ›  专栏  ›  技术社区  ›  zsharp

表单身份验证请求l和Https

  •  2
  • zsharp  · 技术社区  · 16 年前

    如果我的登录页面是https,那么在web配置的forms选项卡中“requireSSl”是否为true有关系吗?

    有人能正确看待这两个设置吗。谢谢

    1 回复  |  直到 16 年前
        1
  •  0
  •   Raj Kaimal    16 年前

    如果在服务器级别设置https,那么requireSsl无关紧要(设置为on或off应该没有任何区别)。设置完所需的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