This example illustrates how to create a timeout control for web sites (similar to what banks and other financial institutions have) that will display a modal popup dialog displaying the time remaining before a session is timed out and redirected to a page explaining what happened:
ASP.NET WebForms Blog Post
ASP.NET MVC Blog Post
This example contains two solutions:
The solution for v2010 vol 2.8+ versions - is an ASP.NET WebSite project.
The solution for v2011 vol 1.12+ versions - is an ASP.NET WebApplication project.