If the application app pool restarts in IIS I'm getting logged out of umbraco. Same issue with sessions on the site I'm building. Using Umbraco 11 but same occurred in 10.
In app settings I've got keep users logged in set to true
The answer is that you need to store the data protection keys. It was regenerating them on each app restart. Suspect this will also solve issues with the umbraco invites expiring unexpectedly.
Prevent backoffice user logout if app restarts
Hi
If the application app pool restarts in IIS I'm getting logged out of umbraco. Same issue with sessions on the site I'm building. Using Umbraco 11 but same occurred in 10.
In app settings I've got keep users logged in set to true
In startup I'm using SQL server session state - which should preserve sessions but these two get wiped out on an app restart.
If anyone can point out where I'm going wrong it would be much appreciated.
Many thanks A
The answer is that you need to store the data protection keys. It was regenerating them on each app restart. Suspect this will also solve issues with the umbraco invites expiring unexpectedly.
https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-6.0
Is umbraco backoffice sessions storing inside the table?
is working on a reply...