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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -