You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gakuzzzz edited this page Dec 26, 2012
·
3 revisions
Stateless vs Stateful implementation.
Play2x-Auth follows the Play framework's stateless policy.
However, Play2x-Auth's default implementation is stateful,
because the stateless implementation has the following security risk:
If user logs-in to your application in a internet-cafe, then returns home neglecting to logout.
If the user logs in again at home they will not invalidate the session.
Nevertheless, you want to use a fully stateless implementation then just override the idContainer method of AuthConfig like this:
traitAuthConfigImplextendsAuthConfig {
// Other settings omitted.overridelazyvalidContainer:IdContainer[Id] =newCookieIdContainer[Id]
}
You could also store the session data in a Relational Database by overriding the resolver.
Note: CookieIdContainer doesn't support session timeout.