Dave Watts wrote:
>
> > 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"!
Correct me if I'm wrong, however, Lock names are global across a
server. They are not limited to the specific application. I'm
actually unclear what constitutes a server in this case. (a domain?
a physical machine?) Although domains only have one application
within them, that is not always the case.
And just to clarify (and make sure that I understand), the reason
I couldn't use code like this:
<cflock name="login_info2" timeout="900" throwontimeout = "yes"
type="readonly">
<cfset session.othersesionvariable = "value">
</cflock>
Is because, a 'session' is a structure, and a structure is only one
variable, and both different lock 'names' are going after the
same variable. Correct?
--
Jeff Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781
--
Instant Cold Fusion 4.5 | ISBN: 0-07-213238-8
Due out 3rd Quarter 2001
--
DotComIt, LLC
Computer Consultant specializing in database driven web data
ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Acoustic Duo called Far Cry Fly
http://www.farcryfly.com
http://www.mp3.com/FarCryFly
--
Does Everyone Think I'm a Cynical?
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com