© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Krautzer

❔ ASP.NET session timeout early

Although the session timeout period is 40 minutes, sometimes (rarely) the session ends before the 40 minutes are up.For example, I browse between pages. Sometimes my session ends before 40 minutes. I couldn't understand why.
<sessionState mode="InProc" timeout="40"></sessionState>
<sessionState mode="InProc" timeout="40"></sessionState>

And I create the session like this:
Session["UsersDetails"] = usersDetails;
Session["UsersDetails"] = usersDetails;
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ASP .NET Session Auth
C#CC# / help
2y ago
❔ SQL Timeout Error Deployed ASP.NET Core app
C#CC# / help
3y ago
❔ ASP.NET api Timeout when fetching data from DB
C#CC# / help
3y ago
❔ Converting ASP.NET 6 to ASP.NET 5
C#CC# / help
4y ago