I have copied a working DNN site (9.13.2) to a testing environment (and I have done this hundred times in the past).
Starting the site runs fine, but when I try to login to the testing website I come back to the page where I clicked on Login - but nothing has happened. Still the login link, and no Persona bar. No errors in the developer tools console, and in the EventLog table a single line with "LOGIN_SUCCESS" and the user name. When I try to login providing a wrong password I get the approbriate error message on the login page (and a "LOGIN_FAILURE" in the EventLog table).
I double checked file and database permissions.
I upgraded to 9.13.3 successfully, still the same problem.
I cleared all cache (in Portals/0-System), restarted the AppPool, cleared the browser cache..., cleared the search index directory.
I disabled AD Authentication in the database, cleared cache, restarted AppPool...
Still the same.
Any ideas?
Happy DNNing! Michael
Michael, maybe you can try to restore the backup into your test environment once again and find out if the same problem happens again.
Posted By johnhenley on 7/5/2024 1:00 PM Check httpCookies setting in web dot config and see if it is set for the production domain
John,
here is my httpCookies line:
<code>httpCookies httpOnlyCookies="true" requireSSL="false" domain="" sameSite="Lax" secure="false"</code>
TBH, I have a checklist I used 100 times - here I set requireSSL and secure to false (as I don't have a certificate in the testing environment (yet)...)
Posted By Marco Alvarado on 7/8/2024 3:58 AM Michael, maybe you can try to restore the backup into your test environment once again and find out if the same problem happens again.
Thanks Marco,
I already tried that...
Are you able to restore this onto another computer and see if it happens there too? Maybe we can isolate this (or not) as something environmental... 🤔
Posted By Will Strohl on 7/8/2024 8:02 PM Are you able to restore this onto another computer and see if it happens there too? Maybe we can isolate this (or not) as something environmental... 🤔
OK, I'll try that - but it has always been the same machine in the testing environment (with the same Windows Server version, the same SQL Server version, the same patch levels...). My hopes are minimal :-(
Got it!
There was a rule and a precondition for the SameSite cookie, having <code>SameSite=Lax;Secure</code>.
Commenting these out or deleting <code>;Secure</code> solved the problem. (Remember, I don't have created a certificate for the testing environment yet).
Awesome... Happy to know you resolved it, and what the solution was! 🙌🏽
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.