Bon733
|
Posted: 01/20/2004, 10:22 AM |
|
I am looking for a good way to let the user know that the ASP session will
timeout shortly. Has anyone seen any good code that I can place in the
template so that if the user is on any page, they will be alerted?
|
|
|
DonB
|
Posted: 01/20/2004, 11:46 AM |
|
The best thing I've seen is to instantiate a timer in javascript with a
value slightly less than the timeout configured for the web site. Something
like:
setTimeout("alert('session is about to end')", 20000);
That fires after 20,000 msec., with the assumption your session probably
lasts 30 seconds.
I suppose you'd want to put that in the <BODY
onload="setTimeout('alert('session is about to end')', 20000);">
(although this needs some attention given to all the apostrophes and quotes
it contains, so that it executes properly)
--
DonB
http://www.gotodon.com/ccbth
"Bon733" <bon@nospam.com> wrote in message
news:bujrki$uhr$1@news.codecharge.com...
> I am looking for a good way to let the user know that the ASP session will
> timeout shortly. Has anyone seen any good code that I can place in the
> template so that if the user is on any page, they will be alerted?
>
>
|
|
|
|