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

Update to iframe SLO with cookie for session handling... (changes also in preivous commit)

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1114 44740490-163a-0410-bde0-09ae8108e29a
parent 3d27a8e8
No related branches found
No related tags found
No related merge requests found
...@@ -98,11 +98,13 @@ function updateslostatus() { ...@@ -98,11 +98,13 @@ function updateslostatus() {
$idpentityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); $idpentityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
$templistofsps = $session->get_sp_list(SimpleSAML_Session::STATE_LOGGEDOUT); $templistofsps = $session->get_sp_list(SimpleSAML_Session::STATE_ONLINE);
$listofsps = array(); $listofsps = array();
foreach ($templistofsps AS $spentityid) { foreach ($templistofsps AS $spentityid) {
if (!empty($_COOKIE['spstate-' . sha1($spentityid)])) $listofsps[] = $spentityid; if (!empty($_COOKIE['spstate-' . sha1($spentityid)])) $listofsps[] = $spentityid;
} }
SimpleSAML_Logger::debug('SAML2.0 - IdP.SingleLogoutServiceiFrame: templistofsps ' . var_export($templistofsps, TRUE));
SimpleSAML_Logger::debug('SAML2.0 - IdP.SingleLogoutServiceiFrame: listofsps ' . var_export($listofsps, TRUE));
// Using template object to be able to translate name of service provider. // Using template object to be able to translate name of service provider.
...@@ -127,9 +129,9 @@ function updateslostatus() { ...@@ -127,9 +129,9 @@ function updateslostatus() {
} }
if ($session->sp_logout_completed() === TRUE) { if (count($templistofsps) === count($listofsps)) {
$templistofsps = $session->get_sp_list(SimpleSAML_Session::STATE_LOGGEDOUT); $templistofsps = $session->get_sp_list(SimpleSAML_Session::STATE_ONLINE);
foreach ($templistofsps AS $spentityid) { foreach ($templistofsps AS $spentityid) {
$session->set_sp_logout_completed($spentityid); $session->set_sp_logout_completed($spentityid);
} }
......
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