I have a webapp running on tomcat using a JndiRealm and form authentication. I would like to add a “remember me” checkbox to that form. What is the best way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s pretty a lot of work if you’d like to keep using container managed authentication since this facility isn’t provided by the standard Java EE API. Spring Security has already done most of the work for you. Check the Remember-Me Authentication documentation. I’d recommend it instead of homegrowing.