Using J2EE sessions when a user closes the browser does not clear the 
memory used by the user's session.  It will still remain as a valid 
session until the session times out or the app is restarted.  What it 
does do is guarantee that the user will get a new session id when 
returning to the site.

Nic

James Holmes wrote:
> Or just use J2EE sessions.
>
> The initial question is about clearing the memory used by the session.
> Without this, the memory taken up by a session remains allocated until
> that session times out, regardless of whether a person has their
> browser open or closed.
>
> On 4/3/07, Dean Lawrence <[EMAIL PROTECTED]> wrote:
>   
>> Whoops,
>>
>> I didn't close my initial cfif statements.
>>
>> <cfif isdefined("cookie.CFID")>
>>         <cfcookie name="CFID" value="#cookie.CFID#">
>> </cfif>
>> <cfif isdefined("cookie.CFTOKEN")>
>>         <cfcookie name="CFTOKEN" value="#cookie.CFTOKEN#">
>> </cfif>
>>
>>     
>>> Les,
>>>
>>> I've used this a number of times.
>>>
>>> <cfif isdefined("cookie.CFID")
>>>        <cfcookie name="CFID" value="#cookie.CFID#">
>>> </cfif>
>>> <cfif isdefined("cookie.CFTOKEN")
>>>        <cfcookie name="CFTOKEN" value="#cookie.CFTOKEN#">
>>> </cfif>
>>>
>>> This basically copies the user session cookies back onto themselves,
>>> but with no expiration date. This turns them into a session cookie,
>>> which are destroyed when the browser is closed.
>>>       
>
>   

-- 
Nicholas M Tunney

Certified Advanced ColdFusion MX 7 Developer
Adobe Certified ColdFusion Instructor
Adobe Community Expert
Blog - http://www.nictunney.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274394
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