java - Multiple users using same Servlets will they override eachothers variables? -
i'm making calls java backend through servlets , each call api im using need supply password , username. can save users password/username in variable can use every time user makes call api?
or variable overwritten if there multiple users?
the overall question perhaps is: every user new "fresh" servlets or data saved users before?
servlets shared performance reasons, should stateless (or thread-safe, you'd reinventing wheel). if need keep state user, put httpsession
.
Comments
Post a Comment