summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/Session/Session.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-foundation/Session/Session.php')
-rw-r--r--vendor/symfony/http-foundation/Session/Session.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/symfony/http-foundation/Session/Session.php b/vendor/symfony/http-foundation/Session/Session.php
index 867ceba97f..62ce948b68 100644
--- a/vendor/symfony/http-foundation/Session/Session.php
+++ b/vendor/symfony/http-foundation/Session/Session.php
@@ -193,7 +193,9 @@ class Session implements SessionInterface, \IteratorAggregate, \Countable
*/
public function save()
{
- $this->storage->save();
+ if ($this->isStarted()) {
+ $this->storage->save();
+ }
}
/**