Partly true on closer inspection. You are correct in that you must pass the
variables through the url string - I was mistaken in thinking that the
session would persist without doing that.
The cfid and cftoken are stored in the session struct however (but I don't
know what they are doing there...).
I must admit I haven't used session variables for years and some of my
previous assumptions that I thought were true are faulty. Thanks for
straightening me out!
+-----------------------------------------------+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+
"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 2:41 PM
To: CF-Talk
Subject: Re: RE: deleting session variables when browser is closed
Hmm, I don't think that's true either.
Setting setclientcookies to "no" means that any links must have the
CFID and CFTOKEN in place in order to maintain persistence. So if I go
to "index.cfm?cfid=1&cftoken=2" and then close the browser window, my
session should still be active. Therefore, if I open another browser
window, I should be able to go back to index.cfm with the same cfid and
cftoken, and my session should still be active, provided I go there
before the session expiry date as stated in the <cfapplication> tag or
in the administrator.
----- Original Message -----
From: Bryan Love <[EMAIL PROTECTED]>
Date: Wednesday, March 20, 2002 3:18 pm
Subject: RE: deleting session variables when browser is closed
> Very well then.
>
> In your CFapplication tag set the attribute "setClientCookies" to
> NO. That
> way the CFID and CFTOKEN are stored in the session struct and when the
> browser closes there is no persistence.
>
> I should really learn to be more explicit in my short answers.
>
> If setClientCookies is set to YES then put this just below the
> CFAPPLICATIONtag:
> <cfcookie name="CFID" value="#cookie.cfid#">
> <cfcookie name="CFTOKEN" value="#cookie.cftoken#">
>
> +-----------------------------------------------+
> Bryan Love
> Macromedia Certified Professional
> Internet Application Developer
> Database Analyst
> Telecommunication Systems
> [EMAIL PROTECTED]
> +-----------------------------------------------+
>
> "...'If there must be trouble, let it be in my day, that my child
> may have
> peace'..."
> - Thomas Paine, The American Crisis
>
>
>
> -----Original Message-----
> From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 1:33 PM
> To: CF-Talk
> Subject: Re: deleting session variables when browser is closed
>
>
> thankee kindly
>
> Shawn Regan wrote:
> > <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>
> >
> > -Shawn Regan
> >
> > -----Original Message-----
> > From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 20, 2002 1:15 PM
> > To: CF-Talk
> > Subject: deleting session variables when browser is closed
> >
> >
> > I seem to remember that once upon a time code was posted to
> delete a
> > session variable in Application.cfm when the browser is closed.
> >
> > Can someone post that code?
> >
> > Thnx,
> >
> > Doug Jordon
> >
> >
> >
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists