Skip to main content
Known Participant
May 10, 2008
Question

Set CF's default cookie expiration time?

  • May 10, 2008
  • 1 reply
  • 1386 views
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
This topic has been closed for replies.

1 reply

Inspiring
May 11, 2008
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/
Known Participant
May 11, 2008
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-Closes-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