Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

Set CF's default cookie expiration time?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
larry_schwartz - 10 May 2008 16:11 GMT
In CF8.

Our site lets CF store cfid/cftoken in CF's default session cookie.  We don't
need or do any custom cookie management.

Is there a way for us to set the default cookie's expiration time?  Ideally,
would like to set the cookie to expire when the browser closes.

Thank you.

Larry
Azadi - 11 May 2008 01:40 GMT
cookies with no expiration set are 'session cookies' and expire when the
user closes the browser.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
larry_schwartz - 11 May 2008 03:22 GMT
Thank you for the answer, but I was specifically asking about the default CFID
and CFToken whose expiration is set to 30 years.  

The approach I know of (documented here
http://www.bennadel.com/blog/1131-Ask-Ben-Ending-ColdFusion-Session-When-User-Cl
oses-Browser.htm) forces one to manually set the CFID/CFTOKEN cookies.  Not
difficult to do, but I looking for a setting to revise ColdFusion's default
expiration date.

Thank you.

Larry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.