OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Time out error popup

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Time out error popup
Page: [1]
 
travismp

 

Posts: 274
Joined: 2/1/2002
From: hutchinson ks USA
Status: offline

 
Time out error popup - 4/30/2009 14:39:42   
I am using the spooky system for logins. I want to notify my users when they time out with a pop up window. Does anyone have a javascript I can start with or is there anything built into the spooky system I can use?
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Time out error popup - 4/30/2009 14:58:42   
Google session timeout alert
http://www.codeproject.com/KB/scripting/Session_Timeout.aspx

_____________________________

:)

Follow us on TWITTER

(in reply to travismp)
travismp

 

Posts: 274
Joined: 2/1/2002
From: hutchinson ks USA
Status: offline

 
RE: Time out error popup - 4/30/2009 15:03:48   
Thank you. I will see what I can find.

(in reply to TexasWebDevelopers)
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Time out error popup - 4/30/2009 18:01:19   
This is interesting...it calls another page (keepsession.asp) using ajax--(I have a little database script on the page that opens and closes a database) and the alert is just an after the fact reminder
quote:


<script type="text/javascript">
<!--
//var keepSessionTimeout = 10 * 60 * 1000 every 10 minutes to be safe
var keepSessionTimeout = 10000 // ten seconds test
setTimeout("keepSession();", keepSessionTimeout );

var req = null;

function keepSession()
{
var url = "keepsession.asp"; //this file contains a db query that returns nothing

if ( window.XMLHttpRequest )
{
req = new XMLHttpRequest();
}
else if ( window.ActiveXObject )
{
req = new ActiveXObject("Microsoft.XMLHTTP");
}

req.open("GET", url, true);
req.onreadystatechange = keepSessionCallback;
req.send(null);
setTimeout("keepSession();", keepSessionTimeout );
}

function keepSessionCallback()
{
if (req.readyState == 4)
{
if (req.status == 200)
{
alert("Your Session will Timeout in 5 minutes. Reset?"); //this just shows that the page request was a success -- this alert can really be eliminated but if kept, set the time for five minutes before the session expires
}
}
}
//-->
</script>


_____________________________

:)

Follow us on TWITTER

(in reply to travismp)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Time out error popup
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts