Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi ,, i have used session in my asp.net application

and i set the session time out 2 minutes
C#
HttpContext.Current.Session.Timeout = 2;


but it Expires after 10-15 minuents!
why?
and what is the default time out in asp.net ?!
Posted

have a look at the following.



Session Time out less than default

and for detailed info about session timeout. have a look at the following.

MSDN

hope it will help. :)
 
Share this answer
 
by default website session time out is 20 min.
in the web config file change in sesion stae change timeout to = 2 minute
 
Share this answer
 
Comments
seyed mahmud shahrokni 30-Oct-13 6:17am    
I've done this solution. But it is useless
kumar9avinash 30-Oct-13 6:19am    
u are using asp.net login control ?
kumar9avinash 30-Oct-13 6:24am    
and which authentication mode u are using ?

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