You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\Session and always got an empty session ID.
Reason is, that $session->migrate is called when no cookie is present. This leads to a call to session_regenerate_id (which fails, because no session was started yet). Afterwards NativeSessionStorage::loadSession is invoked, which sets NativeSessionStorage::$started to true.
So in the end I have a broken session (empty session id). I could fix this, by adding a $session->start() before the call to $session->migrate().
The text was updated successfully, but these errors were encountered:
Is there a reason for the call to $session->migrate()? I think just calling $session->start() should be enough. (Or maybe don't call anything in this case, and let the app start the session if it wants to).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I think there is some kind of conceptual error (at least when session.auto_start=0). I was trying to use Stack\Session and always got an empty session ID.
Reason is, that $session->migrate is called when no cookie is present. This leads to a call to session_regenerate_id (which fails, because no session was started yet). Afterwards NativeSessionStorage::loadSession is invoked, which sets NativeSessionStorage::$started to true.
So in the end I have a broken session (empty session id). I could fix this, by adding a $session->start() before the call to $session->migrate().
The text was updated successfully, but these errors were encountered: