> I'm working on an application that has some long forms in which the
> user could exceed the session time out limit. I'm working on creating
> a custom tag that will warn the user that there session is about to
> expire. I want to have a popup open and ask them if they would like to
> keep working or log out. My question is will opening a popup window
> reset the session timeout?
You might consider a "keep-alive" script. Basically you have a javascript
script that will "ping" a .cfm page every 15 minutes or so to keep the session
alive even if you have the same page open a long time. Here's one that I have
used successfully.
//calls a cfm page to refresh the user session every 15 minutes
function keepAlive() {
var imgAlive = new Image();
var d = new Date();
imgAlive.src = 'image.cfm?d=' + d;
}
setInterval('keepAlive()', 15*60*1000);
You can stick an image in the image.cfm page, but it's not necessary. You do
need to make sure it includes the cfapplication tag (if not in the
Application.cfm or cfc page).
Mary Jo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266632
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4