OK, so you're trying to manually force a given cookie to never expire, and
yet (you say here) "the resultant cookie expires "at end of session"
(looking at it from Mozilla Firefox). "

 

So to clarify, you're not referring to CF sessions at all, but simply the
similarly named aspect of browsers that regard cookies that expire on
browser close to be called "session" cookies.  

 

As for why the cookie seems not to be set as you'd expect, I'll ask again if
you've considered any of those http debugger tools I listed. They would show
you what the browser is getting from the CF page. It seems that the browser
isn't getting the cookie header you're meaning to send. (That said, it could
also be that you did something on the page prior to the CFCOOKIE tag to
cause it to not send any more headers: this can happen with a CFFLUSH, among
other things. It used to also be that CF did not send the cookie header if
you followed the CFCOOKIE with a CFLOCATION, but that was fixed as of CF 6.)

 

/charlie

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, March 17, 2008 7:12 AM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] Cookies...

 


Charlie: 

Here's the code: 
<cfcookie name="QUICKPOLL" expires="never" value="#newCookie#"/> 

And the resultant cookie expires "at end of session" (looking at it from
Mozilla Firefox). 

Sincerely,

Brooks Wilson 

640K ought to be enough for anybody. - Bill Gates (1981) 


Sun Certified Programmer



 


 Federal Reserve Bank of Atlanta . 1000 Peachtree Street, N.E. . Atlanta
Georgia 30309-4470 
404.498.8178 . fax 404.498.8239 . [EMAIL PROTECTED]

 

  




"Charlie Arehart" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 

03/16/2008 02:07 PM 


Please respond to
discussion@acfug.org


To

<discussion@acfug.org> 


cc

        

Subject

RE: [ACFUG Discuss] Cookies...

 

                




Brooks, can you be more explicit about what you mean when you say that the
cookie is "set to expire when the session closes"? Do you mean you're
experiencing that the CF session is expiring when the browser closes, and
you don't want that? If you have "Use J2EE Sessions" checked in the CF admin
(from CF 6-8), that changes the cookie used for tracking sessions from
CFID/CFTOKEN (which were indeed persistent for a very long time, to also
support client vars) to instead use a JSessionID cookie, which is set with
no expiration and therefore goes away with the browser close (depending on
the browser and how you opened the window). 
  
It can be helpful, when trying to decipher problems like this, to use a
client-side proxy tool like Fiddler, Firebug, Charles, ServiceCapture, or
others, so that you can watch for sure the cookies and their expirations
coming to the browser from the server (and going back from the browser to
the server). 
  
I offer links to those and others at the "HTTP Debugging Proxies" section of
my "Tools to Consider for CFML developers 
(nearly 400 tools in more than 40 categories)", at: 
  
 <http://carehart.org/resourcelists/tools_to_consider/#proxy>
http://carehart.org/resourcelists/tools_to_consider/#proxy, ),. 
  
/charlie 
  
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, March 14, 2008 2:51 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] Cookies... 
  

Greetings: 

I'm using cookie with expires="never", but for some reason the cookie is set
to expire when the session closes. Is there an <cfapplication> setting or a
CF Administrator setting the sets a maximum expiration date for cookies? 

Sincerely,
Brooks Wilson 

640K ought to be enough for anybody. - Bill Gates (1981) 

  
------------------------------------------------------------- 
Annual Sponsor - Figleaf Software <http://www.figleaf.com/>  

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 


------------------------------------------------------------- 
Annual Sponsor - Figleaf Software <http://www.figleaf.com/>  

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 




-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

<<image001.gif>>

<<image002.gif>>

<<image003.gif>>

Reply via email to