Closed itkfm closed 1 year ago
Why is this a problem?
The first thing SessionMiddleware::process
does, is to call ::getSessionIdFromRequest(…)
which then results in a call to Yiisoft\Session\Session::getName
which will always return "PHPSESSID"
at this time
Fixed by #46
What steps will reproduce the problem?
What is the expected result?
Yiisoft\Session\Session::getName
would return$this->options['name]
if available (or first check whether there’s an active session) before resorting tosession_name()
.What do you get instead?
a fresh session and new session cookie each response
Additional info
session_name()
always returnsPHPSESSID
when there’s been no session started yet.