It wouldn't. However, if I am the client and I have two web browsers open
with the same session (say I have Navigator opened to two different pages on
your site) and I hit submit in one and then submit in the other real fast,
then if your page takes more than a second or two to run then you
technically have both pages running in parallel. Since both pages have the
same session, you could have problems with reentrancy in your Session
variables.
The easy way to get around this is just lock the entire session so that the
whole Session is just single-threaded. At that point, no matter how many
concurrent requests I send, they just all queue up and go through
single-file. However, your power-users might notice this and get itchy, at
which point you may have to go back and get a bit more granular with your
locks.
-Rick
-----Original Message-----
From: Bud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 4:27 PM
To: [EMAIL PROTECTED]
Subject: RE: More CFLOCK
On 8/2/00, Zachary Bedell penned:
>
>* Locking writes without also locking all reads is completely
>useless.
I'm still trying to decipher in my own mind why it would be so
important to lock session variables. Application variables I can
understand, because if one person changes the value, the value will
change for everyone. But what about sessions? If I have session.foo
in my application, there could be 100 people that have session.foo
set to 100 different values. How would person 1 changing the value of
session.foo affect the other 99 people?
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
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/[email protected]/
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.