I am using ASP.Net Core and MS Identity, I try to understand why after each deployment the login users are logged out.
I am running on a IIS 8.5
I have been trying the method in this thread (setting static machine key)
ASP.NET Identity 2 relogin after deploy
by generating static keys at the server level in IIS UI and adding the following to web.config of the website:
<system.web>
<machineKey validationKey="XXX"
decryptionKey="XXX"
validation="SHA1" decryption="AES"/>
</system.web>
However the problem remains:
- User logs in
- Stop site
- Start site
- The user needs to log in again
But I also go this:
- User logs in
- Restart site
- The user is still logged in
What can cause the user to be logged off? Any idea on how to avoid that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…