Defines web browser cookie variables, including expiration and
security options.
<cfcookie name = "cookie name">
cfcookie(name = "cookie name");
false
strict
lax
none
cfcookie(name="TimeVisited", value=Now(), domain=".local.com", path="/coldfusion" expires=30, httponly="yes", encodevalue="yes" )
<cfcookie name="TimeVisited" value=Now() domain=".local.com" path="/coldfusion" expires=30 httponly="yes" encodevalue="yes" />
cookie.TimeVisited = { value="#Now()#", domain=".local.com", path="/coldfusion", expires=30, httponly="yes", encodevalue="yes" };
<cfheader name="Set-Cookie" value="TimeVisited=#Now()#; path=/coldfusion; domain=.local.com; expires=30; HttpOnly;"/>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.