I wrote a custom tag a long, long time ago that will do something like this. However, I haven't looked at it in about 8 years so you're on your own as far as how well it actually works! ;-)
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1000977 On 10/4/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > > I'm pretty sure client variables don't work like that (though it's been so > long since I used them that I could be mistaken). I'm pretty sure all the > purge interval does is set the frequency that the server will actually check > to see if it should purge anything, not the time that a given client > variable will exist. In other words, I'm pretty sure that if a user hits > your app 1 minute before the next purge is set to run, their client > variables will be deleted in the next minute. If you want granular control > less than a day, you're going to have to write your own code to do it. You > could set a client variable with a time stamp each time they run a request. > Then, you can compare that timestamp to the current time, and if it is > greater than the internal you want to set (2 hours I'm assuming), then you > can delete the client variables yourself (and probably redirect the user to > a login page or something). > > On 10/4/07, Alex Ismail <[EMAIL PROTECTED]> wrote: > > > > We are in need to expire client variables at the same rate as session > > variables. In our case this is 2 hours. > > > > Unfortunately, our client variables expire randomly well before 2 hours > > are passed. > > What are correct settings to achieve this? > > > > Our configuration: > > - Client variables are stored in their own separate database. > > - The checkbox 'Purge data for clients that remain unvisited for 0 days' > > is checked and days is set to 0. > > - The checkbox 'Disable global client variable updates' is not checked. > > - The 'Purge Interval' is set to 2 hours and 0 minutes. > > > > Thank you, > > > > Alex Ismail > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290224 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

