diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php
index fafc8f2752135a48647963f406cfdfb2b235e7c2..c7865985d403cccac5cb26ff1673cd0d09727c19 100644
--- a/lib/SimpleSAML/Session.php
+++ b/lib/SimpleSAML/Session.php
@@ -527,23 +527,6 @@ class SimpleSAML_Session {
 	}
 
 
-	/**
-	 * Set the lifetime of our current authentication session.
-	 *
-	 * @param int $duration The number of seconds this authentication session is valid.
-	 * @deprecated
-	 */
-	public function setSessionDuration($duration) {
-		assert('is_int($duration)');
-		assert('isset($this->authData[$this->authority])');
-
-		SimpleSAML_Logger::debug('Library - Session: Set session duration ' . $duration);
-		$this->dirty = true;
-
-		$this->authData[$this->authority]['Expire'] = time() + $duration;
-	}
-
-
 	/**
 	 * Is the session representing an authenticated user, and is the session still alive.
 	 * This function will return false after the user has timed out.