Currently, we are thinking to add a login module for our website (which previously can be used by all, no need to login). I think that we need to have a user table to store id and password, a password cryptography API to encrypt the password then store into the table. A server side validation to validate if the id/password is match. And code to maintain the login information in the session (which is the difficult part I think).
I don't have experience before in implementing the server side login module. So I wonder if there is some third party library or API that can be used to ease the implementation. I am using tomcat as the web server, so Java libraries are preferred.
Or if someone have experience in implementing it, could you give me some advice.
Thank you all.