title: Error when setting require SSL=true Asp.net
body: <p>I am working in an Asp.net application with forms authentication. On my web.config I had set the requiressl property=true.</p>
  
  <p>I have been working on development without any problem but when I deploy it on my test environment I got the next error: </p>
  
  <blockquote>
    <p>The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL."</p>
  </blockquote>
  
  <p>The error is raised on</p>
  
  <blockquote>
    <p>at System.Web.Security.FormsAuthentication.SetAuthCookie(String userName, Boolean createPersistentCookie, String strCookiePath)
     at System.Web.Security.FormsAuthentication.RedirectFromLoginPage</p>
  </blockquote>
  
  <p>So my questions are why is FormsAuthentication.SetAuthCookie setting the cookie over http? and how can I set it to be over https??</p>