>- see footer for list info -<
It's to dow ith race conditions.

If your doing <cfset session.a = b>
The value of a or b could change before the above statement has completed,
by some other page that also reads/writes the same session variables.
By locking, you ensure this doesn't happen by single threading access to the
session scope or by naming locks.

Russ

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dominic watson
Sent: 19 January 2006 12:11
To: Coldfusion Development
Subject: [CF-Dev] Locking session variables

>- see footer for list info -<
My understanding of session scope is clearly wrong and so I do not
understand why session variables should be locked when written or read.
Could someone please enlighten me?

Thanks,

Dominic
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to