By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 2,007 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

Session Timeouts - Notifying The User

P: n/a
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
dd******@ccs.neu.edu
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
RCS
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.
"David P. Donahue" <dd******@ccs.neu.edu> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
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
dd******@ccs.neu.edu

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.