This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi, I have an app using servlets. The problem is I let a user log in to make changes to the information or update/add a new record to the database. I read her user id and give her supervisor control. So lets say she is in there making changes. Ok another person logs in (not a supervisor) to view records (not necessarily the same record). Well when the first person (supervisor) goes to save the record it won't let her because it has the permissions of the last person logged in who doesn't have the right to change records. How can I stop this? Is there something in the session attributes causing this? I print out who is logged in at the moment she goes to save and it shows the supervisor's name but won't let her save. Any ideas? Thanks
It may be problem with thread issues.I think you are using local variable for user name and instance variable for the user authorizations (right to change).Instance variables are not thread safe.Use local variable instead.