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

Logged out of ASP NET Core site on IIS after 5 minutes of inactivity

$
0
0

Hi,

When running my ASP NET CORE MVC site on IIS I notice that after 5 minutes of no requests, I get logged out of the site (I'm using Identity with cookies authentication).

I suspected this being caused because of the app pool shutting down of inactivity, thus losing any session memory related to the user.

So when in Staging/Production environment, I replaced the InMemoryDatabase for a SqlServer. But I am still having this problem, and I see some weird exceptions of a key not being found in a key ring. I just want the cookies or whatever is needed to persist (either in the sql server or the drive).

These are the important files in the project.

Startup.cs

Program.cs

Log file when logged out

web.config

Login portion of the code

I apologize if I'm missing important details, let me know if I do. Thanks for reading. 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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