Skip to content

Commit

Permalink
Revert "Revert "Revert "Make sure session is saved after changing (#1573
Browse files Browse the repository at this point in the history
)" (#…" (#1613)

This reverts commit aa9f65b.
  • Loading branch information
barryvdh authored Apr 10, 2024
1 parent 53c0ac2 commit 00201bc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/SymfonyHttpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public function isSessionStarted()
public function setSessionValue($name, $value)
{
$this->session->put($name, $value);
$this->saveSession();
}

/**
Expand All @@ -76,12 +75,5 @@ public function getSessionValue($name)
public function deleteSessionValue($name)
{
$this->session->remove($name);
$this->saveSession();
}

protected function saveSession()
{
$this->session->reflash();
$this->session->save();
}
}

0 comments on commit 00201bc

Please sign in to comment.