This isn't an exact science but JavaScript can work well

Robbe Morris replied to Jobi K John at 09-May-08 12:25

when your intent it to close the session in the browser after x time span.  Look up window.setTimeOut in this modal dialog sample for javascript and adapt the approach to solve your problem.  When the time out occurs, change the window.location.href to the desired url.  The url you route the user to should perform a Session.Abandon in the server side code.

http://www.eggheadcafe.com/articles/javascript_modal_dialog.asp

 

Biography
Robbe is a 2004-2008 Microsoft MVP for C# and the .NET Evangelist for Alinean Inc..  He is also the co-founder of EggHeadCafe. Robbe enjoys scuba diving with the folks at wet-n-fla.


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Session time out & Session end - Jobi K John  08-May-08 02:04 2:04:04 PM
      no - santhosh kapa  08-May-08 02:44 2:44:19 PM
      Session End is fired independently at the server - Peter Bromberg  08-May-08 03:05 3:05:07 PM
      `to redirect on session timeout - mv ark  08-May-08 10:09 10:09:14 PM
      use Session.Abandon(); - Vasanthakumar D  09-May-08 12:34 12:34:37 AM
      Try this - sri sri  09-May-08 04:46 4:46:30 AM
      This isn't an exact science but JavaScript can work well - Robbe Morris  09-May-08 12:25 12:25:40 PM
View Posts