> -----Original Message-----
> From: Craig Dudley [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 11:28 AM
> To: CF-Talk
> Subject: RE: wanted features (was Re: (Admin) disclosure)
> 
> My understanding would be that cf just needs to keep a last page hit
> time for a particular session, and then compare that with any new page
> hit from that client, if the time difference is greater than the
session
> has timed out. You could call it passive session tracking??

No - if that were the case CF could never reclaim the session resources
if the user never came back.  There has to be an automated timeout
regardless of user activity.

CF has to constantly check to see if any of the currently active
sessions have not been accessed and if not delete them to reclaim those
resources.  It does this at least once every few seconds.

> But what's being suggested is that cf actually could be set to run
some
> code or template at the exact time a session expires, which I guess we
> could call active session tracking. Which would mean having to keep a
> timer active for every session, yes? Or am I missing something?

Not really.

As it works now CF has a timespan in memory (default 20 minutes) - this
is the timeout.

Every time a client hits a session the current time is added to the
session - this is "last access time" (or somesuch)

Regularly (every few seconds at lest) CF loops through all the open
session and determines if the difference between the last access time
and the current time is great than the timeout timespan.  If the
difference is not greater it leaves the session alone.  If the
difference IS greater it immediately deletes that session.

It seems it would be trivial to also call a template at that point.

As for performance it wouldn't really hurt much.  I've built a system
that mimics all of this using only the application scope (the only way
to really get end-of-session processing) and it's definitely not slow.

Doing it at the architectural level (and dropping the need to do
application-level locking) would make it blazingly fast in comparison.

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137522
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to