From da057418a0aeb824454e672ce244f618758a5e51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 9 Jan 2009 08:59:37 +0000
Subject: [PATCH] clean up cookies for iframe slo spstate

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1115 44740490-163a-0410-bde0-09ae8108e29a
---
 www/saml2/idp/SingleLogoutServiceiFrame.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/saml2/idp/SingleLogoutServiceiFrame.php b/www/saml2/idp/SingleLogoutServiceiFrame.php
index 79d5fcbfa..dcef2cb2f 100644
--- a/www/saml2/idp/SingleLogoutServiceiFrame.php
+++ b/www/saml2/idp/SingleLogoutServiceiFrame.php
@@ -134,6 +134,7 @@ function updateslostatus() {
 		$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
 		}
 
 		$objResponse->addScriptCall('slocompleted');
-- 
GitLab