track « User « JSP-Servlet Q&A

1. Tracking user

2. best way to keep tracking of the user info?

You can store the login in the HttpSession (setAttribute). It is best to not keep track of the password. Read it once, authenticate and then keep a record in the session that the user is logged in. One way is to store the login only when authenticated. Keeping passwords in memory invites someone to do a memory dump and get them. ...