Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
VB
Hello Sir/ Madam ,
                I am developing  website in asp.net.I set it out the session timeout on 2 mints. Everything is fine when i am not working for 2 mint. But now my problem is that my session is timeout even i am working on that site . I want when not working that page for 2 minutes then session will be time out and redirect to my login page. how to do i have searching many sites but yet not get results.
Posted
Comments
Debojyoti Saha 6-Nov-15 7:18am    
do you want to redirect your page after session end?
Mohammad Nawaz 6-Nov-15 7:22am    
yes but when he/she on idle situation
aarif moh shaikh 6-Nov-15 7:33am    
Check Session on page load
Mohammad Nawaz 6-Nov-15 7:43am    
i don't want to session check i want automatically check then redirect login

 
Share this answer
 
Comments
Mohammad Nawaz 6-Nov-15 7:23am    
i tried but this links session time out even i m working on that site
Any chance you're using a cluster of servers? Network load balancing might reroute the client to a different server every time. If so, either the NLB has to be reconfigured to keep a client on a single server or set up session sharing.

Also check that the application pool doesn't have some obscene rule to recycle itself too often.

or try on your server

You can increase the session time-out in asp.net in any one of the following ways

Using IIS Version 7 :

1. Open up IIS
2. Select your website from the list of sites
3. Click on Session state on the right
4. Now enter your session timeout under the cookie settings
 
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