Skip to content
Snippets Groups Projects
Commit 28cfb669 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Remove error handling code when session fails to initialise in...

Remove error handling code when session fails to initialise in SimpleSAML_Session::getSessionFromRequest().
parent db09a208
No related branches found
No related tags found
No related merge requests found
...@@ -200,11 +200,6 @@ class SimpleSAML_Session { ...@@ -200,11 +200,6 @@ class SimpleSAML_Session {
/* For some reason, we were unable to initialize this session. Use a transient session instead. */ /* For some reason, we were unable to initialize this session. Use a transient session instead. */
self::useTransientSession(); self::useTransientSession();
$globalConfig = SimpleSAML_Configuration::getInstance();
if ($globalConfig->getBoolean('session.disable_fallback', FALSE) === TRUE) {
throw $e;
}
if ($e instanceof SimpleSAML_Error_Exception) { if ($e instanceof SimpleSAML_Error_Exception) {
SimpleSAML_Logger::error('Error loading session:'); SimpleSAML_Logger::error('Error loading session:');
$e->logError(); $e->logError();
...@@ -212,7 +207,7 @@ class SimpleSAML_Session { ...@@ -212,7 +207,7 @@ class SimpleSAML_Session {
SimpleSAML_Logger::error('Error loading session: ' . $e->getMessage()); SimpleSAML_Logger::error('Error loading session: ' . $e->getMessage());
} }
return self::$instance; throw $e;
} }
if(self::$instance !== NULL) { if(self::$instance !== NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment