Browse Source

mark the session as stoped

Erwane Breton 8 years ago
parent
commit
f2fd9bb3b9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/Http/Session.php

+ 7 - 1
src/Http/Session.php

@@ -379,7 +379,13 @@ class Session
             return true;
         }
 
-        return session_write_close();
+        if (!session_write_close()) {
+            throw new RuntimeException('Could not close the session');
+        }
+
+        $this->_started = false;
+
+        return true;
     }
 
     /**