Skip to content
Snippets Groups Projects
Commit 3c0b0fbe authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

getinstance(true) on simplesamlphp saml 2 sp example, because you might want...

getinstance(true) on simplesamlphp saml 2 sp example, because you might want to log with trackid before starting sso

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@256 44740490-163a-0410-bde0-09ae8108e29a
parent 3e94fd8f
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ require_once('SimpleSAML/XHTML/Template.php'); ...@@ -11,7 +11,7 @@ require_once('SimpleSAML/XHTML/Template.php');
/* Load simpleSAMLphp, configuration and metadata */ /* Load simpleSAMLphp, configuration and metadata */
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$session = SimpleSAML_Session::getInstance(); $session = SimpleSAML_Session::getInstance(true);
/* Check if valid local session exists.. */ /* Check if valid local session exists.. */
if (!isset($session) || !$session->isValid('saml2') ) { if (!isset($session) || !$session->isValid('saml2') ) {
......
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