-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

NONONONONONONO!!!!!!  DON'T DO THAT!!!

If you mess w/ ColdFusion's client variable database, ColdFusion gets
VERY ticked off at you.  It will start leaking memory, crashing, and
doing all sort of other anti-social things to get even with you.  (At
least it did when I tried something like this on our 4.0.1 server.)

The client variable store is CF's sacred property.  Don't mess with
it!

If you're willing to use cookies as the storage location (which has
its drawbacks, but...), you could just use COOKIE.VariableName
instead of Client.VariableName.  When you set your cookies, just send
them w/ a 2 hour expiration time in CFCOOKIE.  Just keep in mind that
you're going to be sending the entire contents of any cookies you set
back & forth w/ each HTTP request.  Keep them nice & short.  

Even better, use a DB to store your client variables.  Then you can
use Client.LastVisit to decide whether to use or to reset the client
variables before you use them.  You should also set a short client
variable expiration time in the CF Administrator to clean any old
data out of your DB every day or so.

Best regards,
Zac Bedell
> -----Original Message-----
> From: Doyle, Mike [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 12, 2000 2:44 PM
> To: CF-Talk
> Subject: RE: Client Variables Question
> 
> 
> If you save your client variables in a db, then I surmise you 
> could create a
> scheduled task w/in Administrator to sweep out 'old' client 
> variables...
> 
> Just a quick thought.
> 
> 
> Is there a way to set an experation on client variabes in the
> application.cfm file similar to a session timeout.  What 
> would I do if I
> only want the client variables to persist for say 2 hours 
> using cookies as
> the clientstorage.
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOeYKLAraVoMWBwRBEQLkLgCgoOW3ZUWW1+DruoEyP1Oo8h1RhtIAmgOt
bDu0akWbF8or7MATLfZkdhy/
=iGCh
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to