<cfif structKeyExists(cookie, 'CFID') AND structKeyExists(cookie, 'CFTOKEN')>
<cfset variables.cfid_local = cookie.CFID />
<cfset variables.cftoken_local = cookie.CFTOKEN />
<cfcookie name="CFID" value="#variables.cfid_local#" />
<cfcookie name="CFTOKEN" value="#variables.cftoken_local#" />
</cfif>
that'd do it.
Andy...e-mail me offlist for my paypal account :)
On 10/13/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
> CF sessions end when the session expires. Your Application.cfm/cfc file is
> generally where you have the settings for your session. Whatever the
> expiration time is for your session is when it will expire (from the last
> page refresh).
>
> Closing the browser does nothing to the session as the server doesn't know
> that you've closed the browser.
>
> If you find a good answer to "ending the session when the user closes
> his/her browser" then you'll be a RICH man as many people have tried this
> very thing including myself.
>
> <!----------------//------
> andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --------------//--------->
>
> -----Original Message-----
> From: Richard White [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 13, 2006 11:43 AM
> To: CF-Talk
> Subject: ending a session
>
>
> hi, i have read in the coldfusion manual that a coldfusion session is meant
> to end once the browser has been closed.
>
> however, if i set some session variables in a browser, close all browsers,
> then restart my application in a fresh browser, it still comes up with the
> values that were set before i closed all the browsers.
>
> i would appreciate if someone could possibly explain to me why this is
> happening and i can effectively end a session once the user closes the
> browser
>
> thanks for your help
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256712
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4