Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Experts ! Good Afternoon. Have a good day.

I have created a web application and hosted in IIS server.

if the user login into the application and he is not accessing that application. the application must be back to login page if the user is idle.


Please help in finding me a excellent solution.


thank you very much in advance.
Posted

1 solution

You need to use a session timeout.
A Session is one way to manage state of an ASP.Net application.

Read more about Sessions here - http://msdn.microsoft.com/en-us/library/ms972429.aspx[^].
Read more about State Management here - http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx[^]

http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html[^] gives a decent solution that takes you to the login page once the session times out.
In short you direct your application to point to the Login page once a timeout has occurred.
 
Share this answer
 
Comments
Ranjith Reddy CSE 17-Jul-12 5:58am    
Please can you give the easy solution for this ? which you have gave me is something complex. I need easy solution.
_Amy 17-Jul-12 8:10am    
Nice links! +5!
Abhinav S 17-Jul-12 9:25am    
Thanks.
Tejas Vaishnav 17-Jul-12 8:49am    
nice my 5+
Abhinav S 17-Jul-12 9:25am    
Thanks.

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