playframework 2.0 - Upgraded to SecureSocial 2.0.12 and now sessions are not being persisted -


i using securesocial 2.0.7, , i’d implemented userserviceplugin, , users log in. stop , restart server (or recompile or whatever), , users remain logged in.

since upgrading 2.0.12, login session not persistent across server restarts.

i’ve added debug logging every method in userserviceplugin. user being saved @ login. however, when server restarts, , attempt access page previously-logged-in user, see in logs:

[info] play - database [default] connected @ jdbc:postgresql://localhost/xxxxxx [info] application - [securesocial] loaded templates plugin: sec.securesocialviews [info] play - starting application default akka system. [info] application - [securesocial] loaded user service: class sec.loginuserservice [info] application - [securesocial] loaded password hasher bcrypt [info] application - [securesocial] loaded identity provider: userpass [info] play - application started (dev) [debug] application - [securesocial] calling deleteexpiredtokens() [debug] application - deleteexpiredtokens [debug] application - [securesocial] anonymous user trying access : '/supplier/requests' 

any ideas? wonder if reason login cookie getting nuked before gets far checking existing login session…

i’m using username/password authentication.

there change in way user information stored in session. instead of using play session cookie module uses separate one. cookie has authenticator id. user information stored in authenticatorstore implementation on server side now. default implementation uses play cache, that's why need authenticate again on recompilation. data in cache being cleared.

if want keep users logged in after recompilation/restart can:

  1. create implementation of authenticatorstore persists things.
  2. change ehcache.xml file persist in filesystem (diskpersistent="true").

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -