How about making a javascript function that uses something like this:

setTimeout("checkForLogout()",30000);

Then checkForLogout() would be an ajax call to delete the session if you
want it to.

Still, I don't see how this will work as when you leave the page, I'm not
sure the setTimeout() will still execute the function after the 30 seconds.
You'd have to try it to find out.

Dave

-----Original Message-----
From: John Grubb [mailto:[email protected]] 
Sent: Wednesday, July 08, 2009 8:42 AM
To: cf-newbie
Subject: Re: programmatically change session timeout


I need to delay the forced logout by enough time for the next page to load.
That way, if the user loads a page on my site, the session doesn't end. But,
if the user goes outside my site, they are logged off 30 seconds later.
Killing the struct destroys the session immediately so the user would have
to log back in every time the page refreshes. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4615
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to