This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Persistent Cookies

Nov 4th, 2011, 10:11 AM

I have a REST api that is not part of my Grails App.
My Grails App logs in via the api (so the users belongs to the api, not to the app itself) and set parameters like "userId", "name" in the session scope. When i log in, it works well, but i have a problem: when i close the browser and enter my app again, i'm logged out. I want to implement a "Remember Me" function, so i need to know how to extend the time of the session.
And no, i'll not use plugins like Spring Security or Shiro because that plugins implement users in the Grails App domain, and my users are not part of my app domain (they are part of the api domain, who is made in Java and is a sepparate application).