I believe that "remember me" works only in production mode by default.
On Feb 25, 2014, at 2:44 AM, Lidija Dolinar wrote: > Hi, > > I tried "Remember Me" functionality here: > http://tynamo-federatedaccounts.tynamo.org/ (live demo webapp) but the user > isn't remembered. > > When I check the "Remember Me" checkbox and login, the cookie "rememberMe" > is created. After I close the browser and reopen it again I'm not logged > in. Am I missing something here? > > I'm struggling with the creation of the "rememberMe" cookie. This is my > Login.java: > > > public Object onActionFromJsecLoginForm() { > Subject currentUser = securityService.getSubject(); > if (currentUser == null) { > throw new IllegalStateException("Subject can`t be null"); > } > > UsernamePasswordToken token = new UsernamePasswordToken(jsecLogin, > jsecPassword); > token.setRememberMe(true); > > try { > currentUser.login(token); > } > ... > } > > > This is taken from shiro documentation ( > https://shiro.apache.org/authentication.html): > > //Example using most common scenario of username/password > pair:UsernamePasswordToken token = new UsernamePasswordToken(username, > password); > //"Remember Me" built-in:token.setRememberMe(true); > > > > However, the cookie "rememberMe" isn't created :-/. What am I missing? > > > Regards, > Lidija --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org