10000 Allow reuse of MockArraySessionStorage between requests · symfony/symfony@ded4ca3 · GitHub
[go: up one dir, main page]

Skip to content

Commit ded4ca3

Browse files
authored
Allow reuse of MockArraySessionStorage between requests
1 parent 86a5d92 commit ded4ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function getId()
123123
*/
124124
public function setId($id)
125125
{
126-
if ($this->started) {
126+
if ($this->started && $this->id !== $id) {
127127
throw new \LogicException('Cannot set session ID after the session has started.');
128128
}
129129

0 commit comments

Comments
 (0)
0