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 - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -