Jon,

The reason the cookie last so long is to effectively never expire it.
Preferably, you don't want to reassign a user a new CFID/CFTOKEN pair--you
want to keep those cookies on their system forever, that way you'd be able
to track that particular user over the lifetime of the app. The length of
the cookie doesn't reflect the length of the user's session or client
variables--that's all independant of each other.

However, if you do want to override the setting, you should be able to use
the <CFCOOKIE> tag and manually re-write the CFID/CFTOKEN variables with a
shorter lifespan. Just be aware that doing so would cause the server to
regenerate a new CFID/CFTOKEN pair for the same browser if they visit your
site after the cookie expires.

-Dan



> -----Original Message-----
> From: Moneymaker, Jon S (WPNSTA Yorktown)
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 12:08 PM
> To: CF-Talk
> Subject: Cookies and their expiration
>
>
> Still pretty new to all this, but am being asked some
> questions by superiors
> about CF's use/creation of cookies....
>
> CF (to maintain state) drops a "cookie" on the client that
> contains a cfid
> and cftoken....
>
> Looking at the cookie (it's properties) in IE, (said superior
> noted with
> some surprise) that the expriation is, or appears to be 2037.
>
> MY Question: is there a way to cause said cfid/token/cookie
> to expire sooner
> (a lot sooner)?
>
> I tried several things recommended in the books...but the
> cookie remained on
> the browser....persistant little bugger that it is.
>
> suggestions?
>
> Jon Moneymaker (and yes...that really is my last name)
> Network Administrator
> Fleet and Family Support Center, Yorktown, VA
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to