From eb4b8917e698e13986e60f604d4999db62215930 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 16 Nov 2010 14:30:03 +0000 Subject: [PATCH] Session: Remove clean()-function. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2634 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Session.php | 23 ----------------------- www/saml2/sp/SingleLogoutService.php | 1 - 2 files changed, 24 deletions(-) diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index 4a76ac18d..7a3d0cd2b 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -463,29 +463,6 @@ class SimpleSAML_Session { $this->attributes[$name] = $value; } - /** - * Clean the session object. - */ - public function clean($cleancache = false) { - - SimpleSAML_Logger::debug('Library - Session: Cleaning Session. Clean cache: ' . ($cleancache ? 'yes' : 'no') ); - - if ($cleancache) { - $this->dataStore = null; - $this->idp = null; - } - - $this->authority = null; - - $this->authenticated = null; - $this->attributes = null; - - $this->sessionindex = null; - $this->nameid = null; - - $this->dirty = TRUE; - } - /** * Calculates the size of the session object after serialization * diff --git a/www/saml2/sp/SingleLogoutService.php b/www/saml2/sp/SingleLogoutService.php index 1cf847b3d..3b6b1a4e8 100644 --- a/www/saml2/sp/SingleLogoutService.php +++ b/www/saml2/sp/SingleLogoutService.php @@ -18,7 +18,6 @@ if (!$config->getBoolean('enable.saml20-sp', TRUE)) // Destroy local session if exists. $session->doLogout(); -$session->clean(); $binding = SAML2_Binding::getCurrentBinding(); $message = $binding->receive(); -- GitLab