Forum guidelines
AuthorQuestion
How to show countdown when user session expired?
Posted By saravana kumar on 17 Dec 2012
Hi Friends,
   I need to show countdown while user session getting expire?
    How can i achieve this?

AuthorReply
Re: How to show countdown when user session expired?
Posted By Ashish Patel on 19 Dec 2012  
you should know your session timeout period configured on your server.

 call a jquery method at regular interval to check if any activity is done on the page.

 if yes then reset the counter.

 if no then keep counting and when the time comes show the popup.

 and when time completes => using web service ajax call terminate the session of user.

 search forums.asp.net you'll find many solutions.

Training for .Net Developers

SPONSORED BY

JetBrains ReSharper Ultimate
.NET code analysis, refactorings, navigation, unit testing, code coverage and profiling in Visual Studio, a bonus for C++ devs, bundled at 50% off.