Forget the idea of redirecting when the session times out, the web doesn't support that kind of feature. My session might have timed out because I'm viewing a different site or I've shut my pc down. It's possible but a) very annoying for users as they
might want to keep your page in their browser to view it at their leisure b) involves a semi-advanced solution.
sessionstateSessionTimeOutasp.net
I'm afraid I no longer use this forum due to the new point allocation system.
All-Star
37441 Points
9076 Posts
Re: session expire after some time and redirect to login page
Apr 04, 2014 06:07 AM|AidyF|LINK
Look at the code on this link
http://forums.asp.net/t/1888678.aspx?Redirect+do+wanted+URL+after+session+expiration
Forget the idea of redirecting when the session times out, the web doesn't support that kind of feature. My session might have timed out because I'm viewing a different site or I've shut my pc down. It's possible but a) very annoying for users as they might want to keep your page in their browser to view it at their leisure b) involves a semi-advanced solution.
sessionstate SessionTimeOut asp.net