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

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

Trouble making a JSON string -

sitecore - Resolve ISitecoreService using SimpleInjector -