Question
Locking and Objects
I have been looking up a lot of information on locking
shared-scope variables lately, because I dont really do it at all
and I probably should. My question revolves around something else I
had posted about a couple of days ago about creating objects in the
session scope.
I have user.cfc that holds information such as username. etc... I have methods such as getFirstName(), getLastName(), and setUser(userID). These variables are references as #Session.User.getFirstName()# as expected.
My question is, since this is a session variable... should it be locked before access?
I have user.cfc that holds information such as username. etc... I have methods such as getFirstName(), getLastName(), and setUser(userID). These variables are references as #Session.User.getFirstName()# as expected.
My question is, since this is a session variable... should it be locked before access?
