You can’t kill the session when the users links away from your site, you can kill it when they close the browser though. Justin’s answer will do that, except you also need to add:  setclientcookies=”no”   in your CFApplication tag to make it work.

 

Daniel

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Cook
Sent: Thursday, June 16, 2005 7:52 PM
To: [email protected]
Subject: Re: Killing session variables

 

To preserve the session until the browser closes, put this in your application.cfm

 

<cfset Cookie.cfid = SESSION.cfid>

<cfset Cookie.cftoken = SESSION.cftoken>

 

See the CF WACK pages 611-613

Sergio Santamaria <[EMAIL PROTECTED]> wrote:

 

 

How can you kill the session when the browser is closed, or  the user leaves your site?

 

Thanks

 

Sergio Santamaria

SISWORX

Reply via email to