diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index 1f6b35cdbc166f9e9d68f6c7c587c615a6d6303f..1f58116f850e315bdc041d74cbc47240a075e512 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -105,10 +105,9 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo { /** * Retrieves the current session. Will create a new session if there isn't a session. * - * @param $allowcreate Set this to FALSE to disable creation of new sessions. TRUE by default. * @return The current session. */ - public static function getInstance($allowcreate = TRUE) { + public static function getInstance() { /* Check if we already have initialized the session. */ if (isset(self::$instance)) { @@ -127,12 +126,6 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo { } - if(!$allowcreate) { - /* We aren't allowed to create a new session - return NULL. */ - return NULL; - } - - /* Create a new session. */ self::$instance = new SimpleSAML_Session();