Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coldfusion Client Variables

Status
Not open for further replies.

Sarky78

Programmer
Oct 19, 2000
878
GB
I have inherited a website that gets a lot of visitors, this website has got a CFApplication tag that sets a cookie on the server. This cookie doesn't do anything and is not used at all. This CFApplication tag has now been removed as it has no use of the site. The CFApplication tag does not have an expire attribute on it. How can I delete the client information that is in the Registry, as it is causing problems with the running of the site, and causes an error occasionally. Where is this data kept in the registry and are there any special concerns that should be taken into account ?
 
I'm a little confused about your statement that the cfapplication tag sets a cookie on the server. If your main concern is the storage of client variables in the registry, you can go into the CF Admin under "variables" and edit the "registry" setting under "Client Variable Storage". Set this to 1 day and CF should automatically delete all registry entries for you. I wouldn't recommend deleting them from the registry manually. I don't know the interval CF scans and purges but I would suspect it happens at least once a day.

As far as any concerns go, I've managed a heavily used cluster before where they were in use and we didn't have any real problems from them. On occasion, a server would run out of registry space if I didn't catch it and I would have to bump up the registry size temporarily. I think it's better to store them in a database than the registry but I wouldn't set the default storage to anything other than the registry.

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top