DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Login not working

 9 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

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 Tobisch
DNN★MVP

DNN Connect
Advanced Member
Posts: 233
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Check httpCookies setting in web dot config and see if it is set for the production domain
Veteran Member
Posts: 363
Veteran Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

Michael, maybe you can try to restore the backup into your test environment once again and find out if the same problem happens again.

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
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)...)

Happy DNNing!
Michael

 

Michael Tobisch
DNN★MVP

DNN Connect
Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
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...

Happy DNNing!
Michael

 

 

Michael Tobisch
DNN★MVP

DNN Connect
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

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...  🤔 

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
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 :-(

Happy DNNing!
Michael

 

Michael Tobisch
DNN★MVP

DNN Connect
Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

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).

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Awesome... Happy to know you resolved it, and what the solution was! 🙌🏽 

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
Well, to make things easier, I finally created a certificate for the testing environment. That should save a lot of headaches... :-)

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect

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:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved