> Any ideas for keeping this session alive? I tried implementing an 
> IFRAME to routinely hit a keepAlive.cfm page in the background - but 
> that seems so rudimentary and cumbersome - plus it didn't work 100% of 
> the time in my testing.

Well, here's a little script I have used, obviously only works for users with 
javascript enabled, but that's a pretty good percentage these days. 'image.cfm' 
just needs to be some CF page that sits under your Application.cfm (or .cfc) it 
doesn't really need to do much. But the script will make sure it gets called 
every 15 minutes and keep the session alive. Obviously you can just put the 
actual number of milliseconds in that last statement, rather than writing it 
out as I have here.)

//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);       





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296905
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to