Skip to content

Commit

Permalink
mark the session as stoped
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwane authored and markstory committed Aug 28, 2018
1 parent c6fd3f2 commit f2fd9bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Http/Session.php
Expand Up @@ -379,7 +379,13 @@ public function close()
return true;
}

return session_write_close();
if (!session_write_close()) {
throw new RuntimeException('Could not close the session');
}

$this->_started = false;

return true;
}

/**
Expand Down

0 comments on commit f2fd9bb

Please sign in to comment.