I have a Play 2.0.4 web application that uses SecureSocial so that users can log in through third-party providers like twitter, facebook and gmail. At this point, I am not using my own UsernamePasswordProvider; maybe I'll add this later.
I need my users to stay on the system for a long time, maybe a week. In my case, a user session is used only for various convenient functions, such as settings, so the risks associated with long-lived sessions are definitely less important than the convenience of not having to log in every time.
It looks like the session is currently stored in an ephemeral cookie, which disappears when the user quits the browser. There is a sessionTimeOut parameter in the configuration file, but the target seems to end the session in the browser, which remains open for a long time. At least the session is terminated immediately when I close and reopen the browser, even if this timeout is set to a large number.
What is the recommended way to keep users registered for a long time?
Alexr source
share