In addition to that approach, I would suggest the following bit of JavaScript:

function keepAlive() {
    var imgAlive = new Image();
    var d = new Date();
    imgAlive.src = '/alive.cfm?d=' + d;
}
setInterval("keepAlive()", 20*60*1000);

Before the script is added to your site, add a small alive.cfm file to the root 
of your site (name it whatever you wish, just be consistent). The script makes 
sure that a page is requested from your ColdFusion server by their browser 
every 20 minutes (safely less than the 30 minute time-out). Alive.cfm need not 
return an image - JavaScript doesn't check.

Keep in mind that this only works for users who have JavaScript enabled, so 
make sure to use this technique in conjuction with (not in place of) the 
approach suggested by Michael Dawson.

http://steve.coldfusionjournal.com/read/1053683.htm

Steve

> I setup my intranet so that, even if the session times-out, it will be 
> transparent to the end-user.  I do this by keeping a separate session 
> cookie.
> 
> When the session times-out, then the user accesses another page in the 
> application, my scripts will reload the data in the session scope 
> again.  The end-users have not complained about this process.
> 
> Mike
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193182
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to