O'Reilly logo

Spring Security 3 by Peter Mularien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Remember me

A convenient feature to offer frequent users of the website is a remember me feature. This feature allows a returning user to be remembered through a simple cookie, encrypted and stored on the user's browser. If Spring Security recognizes that the user is presenting a remember me cookie, the user will be automatically logged in to the application, and will not need to enter a username or password.

Unlike the other features we've discussed up to this point, the remember me feature is not automatically configured when we utilize the security namespace style of configuration. Let's try out this feature and see how it affects the flow of the login experience.

Implementing the remember me option

Completing this exercise will allow us to provide ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required