Courtesy of Hal Helms, put this in your Application.cfm:

<CFIF IsDefined( "Cookie.CFID" ) AND IsDefined( "Cookie.CFTOKEN" )>
   <cfset localCFID = Cookie.CFID>
   <cfset localCFTOKEN = Cookie.CFTOKEN>
   <cfcookie name="CFID" value="#localCFID#">
   <cfcookie name="CFTOKEN" value="#localCFTOKEN#">
</CFIF>

--
Jillian

-----Original Message-----
From: FlashGuy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 7:14 AM
To: CF-Talk
Subject: RE: <cfcookie and <cfset SESSION.variable =


What if someone just closes IE?

On Wed, 9 Oct 2002 09:01:38 -0400, Everett, Al wrote:

> <cfset temp=StructClear(Session)>
>
> > -----Original Message-----
> > From: FlashGuy [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 09, 2002 8:29 AM
> > To: CF-Talk
> > Subject: Re: <cfcookie and <cfset SESSION.variable =
> >
> >
> > Whats the best way to clear ALL session variables when a user
> > logouts or closes IE?
> >
> >
> > On Wed, 09 Oct 2002 08:25:19 -0400, FlashGuy wrote:
> >
> > > Nevermind...I got it to work.
> > >
> > > Thanks
> > >
> > > On Wed, 09 Oct 2002 08:22:42 -0400, FlashGuy wrote:
> > >
> > > > On Wed, 9 Oct 2002 08:02:24 -0400, Jon Hall wrote:
> > > >
> > > > > Is your session variable getting updated? If not, there is your
> > > > > problem, if so, then the problem lies in some part of
> > the program that
> > > > > is not using the session variables value, or not using
> > it correctly.
> > > > > If the app works using just cookies, then switching to session
> > > > > variables shouldn't be a problem in and of itself.
> > > >
> > > > Yes...I didn't change the line that was calling in the
> > cookie. Now I get an error in my application saying that that
> > it can't resolve the parameter SESSION.VariableName
> > > >
> > > > Do I have to set it, maybe in my application.cfm to be
> > "Nil" at first?
> > > >
> > > > > I'm not sure how secure your app needs to be, but
> > storing paths like
> > > > > that on the client in a cookie sounds very insecure. If
> > I altered the
> > > > > cookie with the list of paths to include c:\, could I
> > get a listing
> > > > > of that directory? Sounds like to me this variable
> > should definitely
> > > > > be a session or client scoped variable.
> > > >
> > > > This is strickly a intranet app.
> > > >
> > > > > --
> > > > > jon
> > > > > mailto:[EMAIL PROTECTED]
> > > > >
> > > > > Wednesday, October 9, 2002, 7:40:05 AM, you wrote:
> > > > >
> > > > > F> HI,
> > > > >
> > > > > F> I'm getting a little confused with <cfcookies and
> > <cfset SESSION.varaible ="">. My application was using
> > <cfcookies and it seemed to work fine. I was reading in a
> > > field
> > > > from my
> > > > > F> database which was a comma delimited field of
> > directories on my hard drive. This was then put into a
> > cookie. I have a template that allows the user to add or
> > remove
> > > > > F> directories for viewing in their navigation window
> > (tree list). Any changes made from the template would be
> > saved to the database and the cookie would be
> > > updated.
> > > > >
> > > > > F> The problem I'm experiencing now is I changed all my
> > <cfcookie calls to use <cfset SESSSION.variable = ""> and
> > when I add/remove a directory and click my
> > refresh
> > > > button it
> > > > > F> won't update my navigation (tree list) frame until I
> > actually close my IE and start it back up again. Then the
> > appropriate directorie(s) don't appear which where
> > > > added/remove
> > > > > F> from my template.
> > > > >
> > > > > F> How can I make this "update" appear by refreshing?
> > Do I *have* to use cookies in my case?
> > > > >
> > > > >
> > > >
> > >
> >
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to