diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php
index 500391fcaaef8df05bb49b4f72bc90da0f99169e..439252793d72590e86c2a4eec18682b3b4dee531 100644
--- a/lib/SimpleSAML/Session.php
+++ b/lib/SimpleSAML/Session.php
@@ -428,8 +428,7 @@ class SimpleSAML_Session {
 		SimpleSAML_Logger::debug('Library - Session: Cleaning Session. Clean cache: ' . ($cleancache ? 'yes' : 'no') );
 	
 		if ($cleancache) {
-			$this->authnrequests = array();
-			$this->logoutrequest = null;
+			$this->dataStore = null;
 			$this->idp = null;
 		}