@@ -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;
/**