Anh Hoang
Anh Hoang

Reputation: 2439

Cannot login if requiressl is set to true

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!

Upvotes: 1

Views: 1150

Answers (1)

Dr Sitecore
Dr Sitecore

Reputation: 31

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

Upvotes: 2

Related Questions