From 1d41b5c52e541b35496492ebdbac38d57a73188b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Wed, 3 Sep 2008 07:36:42 +0000
Subject: [PATCH] Performing logout before sending LogoutRequest with SAML 2.0.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@854 44740490-163a-0410-bde0-09ae8108e29a
---
 www/saml2/sp/initSLO.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/saml2/sp/initSLO.php b/www/saml2/sp/initSLO.php
index fcc557957..162b26dfd 100644
--- a/www/saml2/sp/initSLO.php
+++ b/www/saml2/sp/initSLO.php
@@ -40,6 +40,8 @@ if (isset($session) ) {
 		$httpredirect = new SimpleSAML_Bindings_SAML20_HTTPRedirect($config, $metadata);
 		
 		
+		$session->doLogout();
+		
 		SimpleSAML_Logger::info('SAML2.0 - SP.initSLO: SP (' . $spentityid . ') is sending logout request to IdP (' . $idpentityid . ')');
 		
 		$httpredirect->sendMessage($req, $spentityid, $idpentityid, NULL, 'SingleLogoutService', 'SAMLRequest', 'SP');
-- 
GitLab