Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

I searched on google,have so many examples.
I tried different ways to implement session in login page but not getting the expecting result.

I just want simple login and after session expire supoose after 1 min the page will redirect automatically to login page and asking for sign in again.

hope i will get the solution...
pls try to give answer.
thanks in advance.
Posted
Comments
Murugesan22 28-Mar-14 4:02am    
you have to assign session time out in web.config connection string

I have manage the problem in a Code Project article but in the case of an ASP.NET MVC application, so for your case should be something similar. Here is the link: MVC Basic Site: Step 2 - Exceptions Management[^]

You should look especially on the next chapter: "Manage Unhandled Exceptions".
 
Share this answer
 
v2
XML
<configuration>
<system.web>
 <sessionState mode="InProc" timeout="60">
 </sessionState>
 </system.web>
</configuration>



timeout is in minutes...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900