Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: CF Admin - Default Storage for Client Variables Creates Persistent Cookie

$
0
0

Can ColdFusion defined cookies' attributes ("expired") be controlled? 

 

Is CF dependent on Java interface for its cookie "expired" attribute?

 

Ref http://coldfusion.sys-con.com/node/42100  (Nov 11, 2003)

Using Nonpersistent (Session) Cookies

Nonpersistent cookies can be set using the CFCOOKIE tag ... . The key to creating a session cookie is to set the EXPIRES attribute in <CFCOOKIE> to "Now". EXPIRES is an optional attribute and defaults to "Now" if it is not specified.   By specifying EXPIRES="Now", a cookie is written to the client's memory.   If the cookie you are setting is already a persistent cookie on the client, setting EXPIRES="Now" removes the cookie from the cookie.txt file, leaving the cookie set in the client's memory. Setting session cookies can be created regardless of the value of SETCLIENTCOOKIES (Yes or No) in <CFAPPLICATION>.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>