Skip to content

Commit aa9f65b

Browse files
authored
Revert "Revert "Make sure session is saved after changing (#1573)" (#1574)" (#1591)
This reverts commit 4355550.
1 parent 7720538 commit aa9f65b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/SymfonyHttpDriver.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function isSessionStarted()
5151
public function setSessionValue($name, $value)
5252
{
5353
$this->session->put($name, $value);
54+
$this->saveSession();
5455
}
5556

5657
/**
@@ -75,5 +76,12 @@ public function getSessionValue($name)
7576
public function deleteSessionValue($name)
7677
{
7778
$this->session->remove($name);
79+
$this->saveSession();
80+
}
81+
82+
protected function saveSession()
83+
{
84+
$this->session->reflash();
85+
$this->session->save();
7886
}
7987
}

0 commit comments

Comments
 (0)