RE: Locking session variables in CF 4.0

2000-12-19 Thread Nick Betts

Barney,
Session,application  server variables are not protected from simultaneous
read/write access.  Therefore you should always use CFLOCK tag when
readin/writing to thyese variable scopes.  If you don't, its possible that
several requests could occur at same time.  This could corrupt data or hang
CF server.

Nick Betts
Software Engineer
www.poulternet.com
Leeds,UK

-Original Message-
From: Barney Stevenson [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2000 11:53
To: CF-Talk
Subject: Locking session variables in CF 4.0


I am confused by the knotty subject of locking session variables.

I know that it is recommended to lock all session variables in CF 4.5,
but should I be locking if I am developing for CF 4.0.  What will
happen if I don't implement locks?

Regards

Barney

=

Barney Stevenson 
77 Church Street 
Heaton Norris 
Stockport 
Cheshire
SK4 1JH 
United Kingdom 
+44(0)161 429 6675 
Pager: +44(0)7654 248701 
Fax: +44(0)870 831 0837 

"We work to become, not to acquire".  Elbert Hubbard
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Locking session variables in CF 4.0

2000-12-19 Thread James Maltby

Depending on your use of variables within the site - it may cause "hanging"
of sessions variables, when people from the same network access the site.
For example, when we created a site in eleven different languages (using
session variables set via a log-in) people from the same company where
logging in and getting the site in Arabic or Chinese!  Use CFLock for this
reason alone - there are other reasons too though (which I am sure others
will bring up)

James

"You're a big man, but you're out of shape.  With me it's a full time job.
Now behave yourself."
 "Get Carter" 1964


-Original Message-
From: Barney Stevenson [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2000 11:53
To: CF-Talk
Subject: Locking session variables in CF 4.0


I am confused by the knotty subject of locking session variables.

I know that it is recommended to lock all session variables in CF 4.5,
but should I be locking if I am developing for CF 4.0.  What will
happen if I don't implement locks?

Regards

Barney

=

Barney Stevenson 
77 Church Street 
Heaton Norris 
Stockport 
Cheshire
SK4 1JH 
United Kingdom 
+44(0)161 429 6675 
Pager: +44(0)7654 248701 
Fax: +44(0)870 831 0837 

"We work to become, not to acquire".  Elbert Hubbard
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Locking session variables in CF 4.0

2000-12-19 Thread Johan Coens

Don't locking your application, session and server vars means crashing your
cfserver, overwriting session and application information from other running
applications. You are messing up your shared memory. This is why locking is
that important.

-Original Message-
From: Barney Stevenson [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 19 december 2000 12:53
To: CF-Talk
Subject: Locking session variables in CF 4.0


I am confused by the knotty subject of locking session variables.

I know that it is recommended to lock all session variables in CF 4.5,
but should I be locking if I am developing for CF 4.0.  What will
happen if I don't implement locks?

Regards

Barney

=

Barney Stevenson
77 Church Street
Heaton Norris
Stockport
Cheshire
SK4 1JH
United Kingdom
+44(0)161 429 6675
Pager: +44(0)7654 248701
Fax: +44(0)870 831 0837

"We work to become, not to acquire".  Elbert Hubbard
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists