• Authentication Guide
  • Built in ColdFusion Functions as First Class Citizens
  • CFScript Syntax Guide
  • CFSqlType Cheatsheet
  • CGI Scope
  • ColdFusion Closures
  • ColdFusion Java System Properties
  • ColdFusion Member Functions
  • ColdFusion Security Guide
  • ColdFusion Versions
  • Date Time Cheatsheet
  • Deprecated
  • Discouraged
  • Elvis Operator
  • Encryption Guide
  • Error handling
  • For Loops in CFML / CFScript
  • Java Integration Guide
  • Lucee only
  • New operator
  • Obfuscation Guide
  • Operators in CFML
  • ORM Settings Struct
  • Scopes
  • Server Scope
  • Session Management Guide
  • Strings
  • TestBox Quick Reference
  • Variables Scope
  • Recently Viewed Expiration of cookie variable.

    * The default: the cookie expires when the user closes the
    browser, that is, the cookie is "session only".
    * A date or date/time object (for example, 10/09/97)
    * A number of days (for example, 10, or 100)
    * now: deletes cookie from client cookie.txt file
    (but does not delete the corresponding variable the
    Cookie scope of the active page).
    * never: The cookie expires in 30 years from the time it
    was created (effectively never in web years). Domain in which cookie is valid and to which cookie content
    can be sent from the user's system. By default, the cookie
    is only available to the server that set it. Use this
    attribute to make the cookie available to other servers.

    Must start with a period. If the value is a subdomain, the
    valid domain is all domain names that end with this string.
    This attribute sets the available subdomains on the site
    upon which the cookie can be used. CF 2018+ Tells browsers when and how to fire cookies in first-
    or third-party situations. SameSite is used to
    identify whether or not to allow a cookie to be
    accessed. Values:
  • strict
  • Copy the generated code below
  • Click Here to edit doc for: cfcookie
  • Update doc by adding the example in the examples section
  • Scroll to the bottom and click "Propose Change"
  •