> Try to set your session vars in the login script like this
> 
> <cflock name="login_info" timeout="900" throwontimeout = "yes"
> type="readonly">
>   <cfset session.fname = "users fullname">
> </cflock>

I think it's important to point out that this example will only work if
every other use of session variables within this application is locked with
the name "login_info"!

Locking in CF is a cooperative scheme, in a manner similar to locking within
a database. What makes it work isn't the one CFLOCK tag around a specific
variable, but rather having all variables within the same persistent scope
(or to be even more specific, all instances of a resource for which you want
to single-thread access) locked consistently. In CF 4.5.x, this is a lot
easier using the SCOPE attribute instead of the NAME attribute.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to