Session Timeouts - Notifying The User

  • Thread starter Thread starter David P. Donahue
  • Start date Start date
D

David P. Donahue

What is the best way (or what ways have been successful for you) to
notify a user on a website that their session has timed out?

I've seen various sites around the internet (my bank, for example)
which, when the browser is left untouched for an extended period of
time, forward the user to a "session timed out" page of some sort. I
assume this is done with a simple enough client-side script (a moment on
Google found me some examples which will work just fine).

Has anyone taken a different approach to this? Are there any better
ways of doing this in the .NET world? Does anyone have any simple code
examples of what they've used? I can picture all kinds of things, from
forwarding the user to a page saying "you've been automatically logged
out" to notifying the user via a DHTML floater that they are about to be
logged out, etc. Suggestions?


Regards,
David P. Donahue
(e-mail address removed)
 
I think of those are done with a meta refresh tag - that refreshes to a page
that kills the session and tells you the session is dead. You could do a
setTimeout in javascript, but there are a lot of things that can stop
javascript from executing.
 
Back
Top