Well, after 10 years with CF, I learn something I should
have learned with CF 4.5.

I thought cookies were on the hard drive and session variables
were in memory only.  I figured that's why there were separate
settings for client management and session management all this time.

Concerning "another app" setting cookies...
I had "this.setClientCookies = false" specifically set in this app.

Would another app on my local machine still be able to set cookies
that would affect this app?  There's not another app with the same
application name...



> -----Original Message-----
> From: Dave Watts [mailto:[email protected]]
> Sent: Wednesday, January 07, 2009 8:14 PM
> To: cf-talk
> Subject: Re: Desparate!!!! Need someone to look at my code and figure out the 
> problem!
> 
> > But why was this working on my local setup?  Everything
> > is the same?  Does it have to do with a multi-site setup
> > on my VPS, perhaps?
> 
> Presumably, you have some other CF app which is setting cookies, so
> your app doesn't have to.
> 
> > And why do I need to have cookies turned on?  Do session
> > variables interact with them?  I usually turn them on,
> > but since this is the way the first example application.cfc
> > I saw was set up, I copied the settings for the most part.
> 
> HTTP is a stateless protocol. It doesn't have any built-in mechanism
> to keep track of previous page requests, or anything like that. You
> request a page, you get a response, that's it. You request another
> page, that is a completely separate transaction and the web server
> doesn't associate that with your previous page request.
> 
> So, to provide state management - the ability for your application to
> remember logins and other session-specific data - CF has to have some
> sort of session token that it can track from one request to the next.
> This token can either be stored in a cookie, or it can be embedded
> within each HTTP request using form or URL data. But it has to be one
> or the other.
> 
> Generally, developers use cookies for session tokens, because it's a
> lot easier to set the cookie once, then to make sure that every link,
> form post, redirect, Javascript location assignment, etc, contains the
> token. So, yes, cookies are in that sense a prerequisite for session
> management.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317579
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to