Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello. i want users to automatically get logged out after 5minutes,with the condition if user is idle for 5minutes. i used the following code in to the web config file but its not working

XML
<authentication mode="Forms">
   <forms loginUrl="~/Login.aspx" timeout="1"/>
 </authentication>
Posted

1 solution

Have a look at similar question answered here: session time handling[^]
 
Share this answer
 
Comments
Maciej Los 30-May-12 13:53pm    
Good link, my 5!
Sandeep Mewara 30-May-12 13:58pm    
Thanks losmac. :)
morojele 31-May-12 17:56pm    
thanks
Sandeep Mewara 1-Jun-12 3:22am    
Welcome.

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