Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to log out the user if he is idle or not using the website for 10 mins
Posted
Comments
Zoltán Zörgő 11-Oct-12 8:37am    
Is it ASP.NET? Is it your project? Have you heard about sessions?
Member 9492907 11-Oct-12 8:39am    
yes it is asp.net project....can u plz give me the code
[no name] 11-Oct-12 8:46am    
use session state in web config file and set the timeout as 10 minutes. also check session on evry page load event.

 
Share this answer
 
Comments
fjdiewornncalwe 11-Oct-12 10:11am    
+5. Of Course.
[no name] 12-Oct-12 0:37am    
thank you Marcus
ridoy 11-Oct-12 13:35pm    
+5
[no name] 12-Oct-12 0:38am    
thank you ridoy
Here is a small tutorial on how this can be achieved: http://www.w3schools.com/aspnet/met_websecurity_logout.asp[^]
 
Share this answer
 
Comments
ridoy 11-Oct-12 13:34pm    
+5
fjdiewornncalwe 11-Oct-12 15:05pm    
Thanks, ridoy.

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