I know that you can cause a person's session to end when the quit their
browser using code such as.

<CFIF IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
        <CFSET cfid_local = Cookie.CFID>
        <CFSET cftoken_local = Cookie.CFTOKEN>
        <CFCOOKIE NAME="CFID" value="#cfid_local#">
        <CFCOOKIE NAME="CFTOKEN" value="#cftoken_local#">
</CFIF

However I am not sure how this affect the session values that are stored in
memory.  If I understand this code properly it is essentially invalidating
the cookie which is a client side value so that the next time this person
comes to the site their cookie is is useless.  However does the session
still persist in memory?

Here is the situation.  You are using session management and you have the
session set to say 2 hrs.  A person logs into the site and the session is
set along with the coresponding CFID and CFTOKEN cookies.  The person
finishes in 15 minutes and instead of logging out (as we would like them to
do) they quit the browser. Their cookie becomes inactive using the code
above, but what happens to the session values stored in memory.  Do they
persist for the remaining time left in the session?  In this case for 1 hr
45min.

Mark Johnson
-----------------------
Senior Cold Fusion Developer
Cardinal Communications


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to