Coldfusion session management and locking varables -


i've been reading locking various persistent variables, application, session, etc. , understand race conditions exists reading application variables updated often.

i'm not sure session variables , application variables don't change. on single server , cf9. i'm locking session variables when set them, necessary lock them when reading them. doesn't each user have own set of session variables. how changing values 1 user effect different user viewing same page @ same time.

also, set application variables in application.cfc file , not change. locks needed every time read application.dsn variable?

thanks, gary

you don't need lock session variables unless have part of app going modifying user's session directly (which part of undocumented feature in cf, it's not you're doing anyway).

as application variables, shouldn't need lock either if you're setting them once , never messing them again.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -