First of all, you need to lock read/writes to session variables.  (and
application and server scopes as well)

<cflock scope="session" timeout="30">
    <!--- here is where you put code that accesses the
    session scope --->
</cflock>


----- Original Message -----
From: "Colin Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 12:44 AM
Subject: Scope error?


> Hi All,
>
> I'm getting this error
>
>
> Error near line 19, column 7.
> ------------------------------------------------------------------------
> --------
>
> Symbol session.type is in a scope that contains data shared across
> threads and cannot be accessed without an active lock
>
>
>
> The error occurred while processing an element with a general identifier
> of (CFSET), occupying document position (19:1) to (19:28).
>
>
> What does it mean?
>
> I tried to set session variables but I get this error..
>
> Any input would be great.
>
> Here's the offending code.
>
> <cfif (compare (#username#, "something") eq 0) and (compare
> (#password#, "apassword") eq 0)>
>
> <cfset session.type="admin">
> <cfset session.validated="yes">
>
> <cflocation url="admin_main.cfm">
>
> </cfif>
>
> And the following line is set in the application.cfm file...
>
> <cfapplication sessionmanagement="Yes" clientmanagement="Yes"
> name="something">
>
>
> Colin Wilson
> Wilson Technologies
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.317 / Virus Database: 176 - Release Date: 21/01/2002
>
>
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to