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

Session: Change getInstance to create a new session by default.

Most of the places which currently call getInstance without a parameter
expects a session to be returned.


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@564 44740490-163a-0410-bde0-09ae8108e29a
parent 3af2d780
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo { ...@@ -106,7 +106,7 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo {
} }
public static function getInstance($allowcreate = false) { public static function getInstance($allowcreate = TRUE) {
/* Check if we already have initialized the session. */ /* Check if we already have initialized the session. */
if (isset(self::$instance)) { if (isset(self::$instance)) {
...@@ -140,7 +140,7 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo { ...@@ -140,7 +140,7 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo {
public static function init($authenticated = false, $authority = null) { public static function init($authenticated = false, $authority = null) {
$preinstance = self::getInstance(); $preinstance = self::getInstance(FALSE);
if (isset($preinstance)) { if (isset($preinstance)) {
......
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