Cannot login if requiressl is set to true

1k views Asked by At

I have a live web site in IIS 7.5. I can login to my site correctly with http protocol till I add this line in Web.config:

httpCookies httpOnlyCookies="true" requireSSL="true"

All configuration for SSL is done but I cannot login anymore with both http and https although the cookie .ASPXAUTH is created.

If I set requireSSL="false", I can login normally.

Please help!

1

There are 1 answers

0
Dr Sitecore On

I had the same problem and as I came across this post searching for a solution I can explain what happened: your application was configure to use secure cookies and this requires the browser to issue the request over SSL. Therefore, if requireSSL attribute is set to true, you can't log in to your website with Http