Kevin,
This is very easy to do assuming you are using a database to store your
client variables. Here is the code that will simulate a session timeout
with client variables.
<!--- This Code Creates the Appearance of Session Timeout -->
<CFIF DateDiff("n", Client.LastVisit, Now()) GTE 20>
<CFQUERY NAME="delClientVars" DATASOURCE="MyDatasource" MAXROWS=1>
DELETE FROM Cdata
WHERE CFID = '#Client.CFID#:#Client.CFTOKEN#' AND
APP = 'MyApp'
</CFQUERY>
</CFIF>
Thanks,
David Sparkman
-----Original Message-----
From: Kevin Schmidt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 2:23 PM
To: CF-Talk
Subject: Client Variables Question
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.
Kevin Schmidt
Internet Services Director
PWB Integrated Marketing and Communications
Office: 734.995.5000
Mobile: 734.649.4843
----------------------------------------------------------------------------
--
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.
------------------------------------------------------------------------------
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.