I have a master page and content page. The session timeout is set at 15 minutes. At about session timeout, i want to have a popup that says "Your session is about to end. Would you like to continue?" if the user clicks on Ok, then they should stay on the
same page. if they dont clik on anything then the user must be redirected to the login page after 15 minutes.
how can i achieve this. Is Javascript the best way to move forward?
snailpace
Member
31 Points
285 Posts
Redirect to login page after session timeout
Aug 02, 2012 01:38 PM|LINK
I have a master page and content page. The session timeout is set at 15 minutes. At about session timeout, i want to have a popup that says "Your session is about to end. Would you like to continue?" if the user clicks on Ok, then they should stay on the same page. if they dont clik on anything then the user must be redirected to the login page after 15 minutes.
how can i achieve this. Is Javascript the best way to move forward?
thanks
swapna.anu
Contributor
2658 Points
746 Posts
Re: Redirect to login page after session timeout
Aug 02, 2012 02:26 PM|LINK
Check this link - http://www.codeproject.com/Articles/227382/Alert-Session-Time-out-in-ASP-Net
There are different scenarios in the link like when you want to take to login page or extend the session.
Hope this helps.