Skip to content
Snippets Groups Projects
Commit 66e503b2 authored by Olav Morken's avatar Olav Morken
Browse files

Session: Log error when save fails.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2504 44740490-163a-0410-bde0-09ae8108e29a
parent 4abc73be
No related branches found
No related tags found
No related merge requests found
......@@ -838,7 +838,16 @@ class SimpleSAML_Session {
$this->dirty = FALSE;
$sh = SimpleSAML_SessionHandler::getSessionHandler();
$sh->saveSession($this);
try {
$sh->saveSession($this);
} catch (Exception $e) {
if (!($e instanceof SimpleSAML_Error_Exception)) {
$e = new SimpleSAML_Error_UnserializableException($e);
}
SimpleSAML_Logger::error('Unable to save session.');
$e->logError();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment