-
Notifications
You must be signed in to change notification settings - Fork 62
SessionManager doesn't call rememberMe() automatically #59
Comments
I do not think so, because this behaviour is not documented and also not implemented. |
It seems I found a solution: to use |
"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. |
This repository has been closed and moved to laminas/laminas-session; a new issue has been opened at laminas/laminas-session#14. |
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?The text was updated successfully, but these errors were encountered: