CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Session Timeout Warning

Print topic Send  topic

Author Message
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?
>
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.