> I have a client who has problems with sessions getting
> corrupt. I've determined that their site does not utilize
> locking in the code throughout the application. During my
> research I noticed that they didn't set up the ColdFusion
> Administrator Variable Locking. Now, can I just configure
> the settings in the ColdFusion Administrator for variable
> locking and not have to go back and code locks. I know this
> is a stretch, but I haven't been able to find any definitive
> documentation on the ColdFusion Administrator configuration
> for Variable Locking. Any suggestions or leads would be
> appreciated.
Unfortunately, things aren't that simple. There's no simple "lock everything
automatically" setting in the CF Administrator.
You do have some options. If it's session variables you're worried about,
you can prevent concurrent accesses by enabling the "Single-Threaded
Sessions" option on the Locking page. If you do this, you won't need any
locks around session variables. However, doing this may cause serious
performance issues, as CF won't be able to process requests from the same
session simultaneously (which is what the setting says, after all). You'd
probably be better off locking the variables.
For all memory variables, you can simply lock writes with exclusive locks,
and have read locking handled automatically by using "Automatic Read
Locking". You'll obviously still need some CFLOCK tags, but not as many.
This is probably the closest thing to what you're looking for.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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