• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Set CF's default cookie expiration time?

New Here ,
May 10, 2008 May 10, 2008

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 10, 2008 May 10, 2008

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 10, 2008 May 10, 2008

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation