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

Fix for iframe SLO without javascript fallback

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1116 44740490-163a-0410-bde0-09ae8108e29a
parent da057418
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,21 @@ $session = SimpleSAML_Session::getInstance();
$idpentityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
if ($session->sp_logout_completed() === TRUE) {
$templistofsps = $session->get_sp_list(SimpleSAML_Session::STATE_ONLINE);
$listofsps = array();
foreach ($templistofsps AS $spentityid) {
if (!empty($_COOKIE['spstate-' . sha1($spentityid)])) $listofsps[] = $spentityid;
}
if (count($templistofsps) === count($listofsps)) {
$templistofsps = $session->get_sp_list(SimpleSAML_Session::STATE_ONLINE);
foreach ($templistofsps AS $spentityid) {
$session->set_sp_logout_completed($spentityid);
setcookie('spstate-' . sha1($spentityid) , '', time() - 3600); // Delete cookie
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
......
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