It was my understanding that you didn't have to lock client variables ...

Paul Giesenhagen
QuillDesign

----- Original Message -----
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 3:15 PM
Subject: RE: Client Variables - Serious Problem


> paul, paul, paul....its a locking issue my friend.
>
> client scope is something that should be locked (from what I remember.)
>
> do this...
>
> <cflock scope="Server" name="LoginUser" type="exclusive" timeout="3">
>
> <cfwddx action="cfml2wddx" input="#member#"
> output="client.member">
>
> </cflock>
>
> and then this...
>
> <cflock scope="Server" name="LoginUser" type="readonly" timeout="3">
>
> <cfif IsDefined("client.member")>
>  <cfwddx action="wddx2cfml" input="#client.member#" output="member">
>     <CFSET IsDeleteSuccessful = DeleteClientVariable("location")>
> <cfelse>
>     <cflocation url="member.cfm?mode=login" addtoken="Yes">
> </cfif>
>
> </cflock>
>
> I think this may help you ;)
>
> ...tony
>
> Tony Weeg
> Senior Web Developer
> UnCertified Advanced ColdFusion Developer
> Information System Design
> Navtrak, Inc.
> Mobile workforce monitoring, mapping & reporting
> www.navtrak.net
> 410.548.2337
>
> -----Original Message-----
> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 4:08 PM
> To: CF-Talk
> Subject: Client Variables - Serious Problem
>
>
> Question:
>
> I am using client variables to login users and keep their information
> while roaming the site.  The problem is I just went into the site and it
> had me logged as another user of the site... Below is the code I am
> using to login in a user....  I haven't used the client variables alot
> so if you see something I am doing wrong, please enlighten.
>
> <!--- Login the user --->
> <cfset member = StructNew()>
> <cfset member.firstName = memberCheck.firstName>
> <cfset member.lastName = memberCheck.lastName>
> <cfset member.memberID = memberCheck.memberID>
> <cfset member.userName = memberCheck.userName>
> <cfwddx action="cfml2wddx" input="#member#" output="client.member">
>
>
>
> <!--- Top of email MEMBER page to see if they are member or not --->
>
> <cfif IsDefined("client.member")>
>  <cfwddx action="wddx2cfml" input="#client.member#" output="member">
>     <CFSET IsDeleteSuccessful = DeleteClientVariable("location")>
> <cfelse>
>     <cflocation url="member.cfm?mode=login" addtoken="Yes">
> </cfif>
>
> When I opened my browser and went to the site, It thought i was a
> different user ... how could something like this have happened??
>
> Any help or if you all need more information, please let me konw.
>
> (Win2K, CF5 - Single Machine)
>
> Thank you
> Paul Giesenhagen
> QuillDesign
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to