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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -