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

Session: Log exception when failing to initialize session.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2383 44740490-163a-0410-bde0-09ae8108e29a
parent 3bc167f6
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,12 @@ class SimpleSAML_Session {
try {
self::$instance = self::loadSession();
} catch (Exception $e) {
if ($e instanceof SimpleSAML_Error_Exception) {
SimpleSAML_Logger::error('Error loading session:');
$e->logError();
} else {
SimpleSAML_Logger::error('Error loading session: ' . $e->getMessage());
}
/* For some reason, we were unable to initialize this session. Use a transient session instead. */
self::useTransientSession();
return self::$instance;
......
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