Search code examples
grailscookiesjsecurity

Implementation of “remember me” in a Grails application


How do I implement a "Remember Me" function in Grails so that the user can check it and he won't have to log in again for 2 weeks?

I'm using the jSecurity plugin and want to change the cookie's lifetime beyond the browser session.


Solution

  • Spring security (formerly acegi security) has this built-in, if you can use that plugin.

    otherwise, the other posted solutions work nicely.