coool thing :) I just looked at the code I have, on our site, that uses client vars and I don't lock it, musta been the other Tony Weeg that typed that last email, BAD other personality! BAD BAD BAD....
...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: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 4:18 PM To: CF-Talk Subject: RE: Client Variables - Serious Problem Woah - you do not need to lock client variable access - and even if you were to use a lock, the Server scope lock is defintely not the right one to use. ======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Email : [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 3:15 PM > To: CF-Talk > 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

