Possibly the sessiontimeout attribute of your cfapplicaiton tag?

You could also do a little JS magic to ensure sessions never die as long as
the browser is open by just requesting something via httprequest every XXX
seconds or minutes (or whatever).

Example...

Write a page that only outputs something like...
<cfoutput>#isdefined('session.isloggedin')#</cfoutput>

Or whatever a session var for logged in users might be in your case

The page will simply print YES or NO

Now just call that page every XX seconds/minutes via 'AJAX'. Simply calling
the page will reset the session timeout and keep the user logged in as long
as the browser is open.

If for some reason the session DOES die... the request will return a NO. You
can check for that and just log them back, inform them that the session is
dead, log them back in... etc.. 

You could also use J2EE session vars to ensure that when they close and
reopen the browser that the session is no longer active.


..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 30, 2007 11:20 AM
To: CF-Talk
Subject: Session Vars Time Out

In the CF Admin, I've got all session and application vars set to timeout at
1 hour. In my Application file, I've got the same settings, with all the
appropriate locks and what not.

Client logs into their admin system, works on something for 10 minutes,
walks off for five to get a cup o'joe, comes back, opens another browser
window on top of their admin page, looks at porn or something for 5 minutes,
then goes back to the admin page (which they never closed) to finish up what
the boss told them to do 2 hours ago.

As soon as they click on anything, they're immediately sent to my timeout
trapping page "Your session has timed out, please login again".

It hasn't been an hour yet. What might be causing the timeout? As the client
screamed at me on the phone, "THIS ABSOLUTELY CAN NOT HAPPEN".

Suggestions? Running CF 7...




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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

Reply via email to