-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SessionManager doesn't call rememberMe() automatically #14
Comments
I do not think so, because this behaviour is not documented and also not implemented. Originally posted by @froschdesign at zendframework/zend-session#59 (comment) |
It seems I found a solution: to use Originally posted by @olegkrivtsov at zendframework/zend-session#59 (comment) |
"Remember me" is an optional function of the session manager which you must invoke manually if you wish to use it. All it does is extend the session cookie lifetime; the timing of server-side session gc is unaffected so sessions don't actually "live" longer.
(ref: http://stackoverflow.com/a/9539452) IMO it's not a useful function in it's present state. If you want to remember a user in this way and ask them to re-authenticate on a future visit you're best off implementing a separate cookie aside from the PHP session cookie for that. Originally posted by @adamlundrigan at zendframework/zend-session#59 (comment) |
Trying to figure out how to use sessions in ZF3, I've found that
SessionManager
doesn't use the configuration I pass. For example, I configure it as follows:However,
SessionManager
never useremember_me_seconds
parameter unless I manually call itsrememberMe()
method. But, I expect it to call it automatically when session is started. Is this a bug?Originally posted by @olegkrivtsov at zendframework/zend-session#59
The text was updated successfully, but these errors were encountered: