-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Fixes a possible regression in SessionStorage top classes #9530
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,7 +239,6 @@ public function save() | |
} | ||
|
||
$this->closed = true; | ||
$this->started = false; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reverting the other PR is not an option as it definitely fixed a bug. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still a regression. With this addition, somehow, the Or maybe did I miss something on the usage of this property ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ping @fabpot Let me be more clearer ; this "revert" is done to fix the mentionned bug (which was #7936), but for an unknown reason, for some app, the That is why I tried another approach to solve this bug, without causing the cookie problem : if yiou check if the session is started, instead of just checking the so this "revert" is still fixing the bug... or it would seems, as I don't have any use case to reproduce it. Maybe @Drak could check up if it seems legit ? |
||
|
||
/** | ||
|
@@ -314,7 +313,7 @@ public function getMetadataBag() | |
*/ | ||
public function isStarted() | ||
{ | ||
return $this->started; | ||
return $this->started && !$this->closed; | ||
} | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As i said in my second commit, I'm not sure if I should take that as a "regression"... As the data is not persisted, there is no other way to know (AFAIK) if the session was "stopped", or if the
closed
boolean should be turned to true here.