diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php
index 4a76ac18dd059a8cb2ef0aa375a40d2c4dba457a..7a3d0cd2ba0a68cf15cc7cb2983d1034354f1369 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 1cf847b3d3187940b867f7c403e9113dfd943309..3b6b1a4e8d330da8414fbaef936fbc72eb67498a 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();