Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

All users logged out after server change

$
0
0

Dear All,

I have an existing asp.net core 2.1 application that needs to be migrated to a new host.
On my pre-tests every user is logged out after switching the host.
I copied the existing key files (data protection key ring) to the new host, which were already in my filesystem (PersistKeysToFileSystem) but I never set the applicationname (SetApplicationName).
According to that article (https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-2.1 ) the Data Protection system isolates apps from one another based on their content root paths, if no applicationname is set.
The path is different on the new host, so I think that's my problem losing the logins or am I wrong?

I can‘t use the same path, because on the new host (AzureVM) does not allow _ (underscores) in the file path, which are used on the old one.

So, what can I do to keep every user logged in?

ty


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>