Closed maxmos10 closed 9 years ago
I still not catch your problem...
Do you have what the trouble?
Hi gakuzzzz,
Following the example from RememberMe
, I log in using routes /rememberme/
.
After login is successful, I close the browser. Then, i believe that the Cookie maxAge
will be set to None.
If I close the browser for the 3rd time, then user will have to login to access /rememberme/messages/main
. How do I avoid that?
maxAge == None
means that the cookie life is until the browser closing.
If you want to keep the session until browser reopen, you should write maxAge
explicitly.
I'm trying to do an implementation of remember me which last for one month.
I followed the example on https://github.com/t2v/play2-auth/tree/master/sample/app/controllers/rememberme. Then I override
AsyncIdContainer
to store the token in a database instead.Where to go after this?
Should I change the behavior of RememberMeTokenAccessor when checking for
remember
andmaxAge
? What's your thought?