Revision: 2276
Author: olavmrk
Date: Wed Apr 28 01:39:34 2010
Log: Session: Remove deprecated functions init() and setAuthenticated().
http://code.google.com/p/simplesamlphp/source/detail?r=2276
Modified:
/trunk/lib/SimpleSAML/Session.php
=======================================
--- /trunk/lib/SimpleSAML/Session.php Wed Apr 28 01:16:22 2010
+++ /trunk/lib/SimpleSAML/Session.php Wed Apr 28 01:39:34 2010
@@ -191,23 +191,6 @@
}
- /**
- * Initializes a session with the specified authentication state.
- *
- * @param $authenticated TRUE if this session is authenticated, FALSE if
not.
- * @param $authority The authority which authenticated the session.
- * @deprecated Replace with getInstance() and doLogin(...) /
doLogout().
- */
- public static function init($authenticated = false, $authority = null) {
- $session = self::getInstance(TRUE);
- $session->clean();
- $session->setAuthenticated($authenticated, $authority);
- }
-
-
-
-
-
/**
* Get a unique ID that will be permanent for this session.
* Used for debugging and tracing log files related to a session.
@@ -410,28 +393,6 @@
}
- /**
- * Sets the current authentication state of the user.
- *
- * @param $auth The current authentication state of the user.
- * @param $authority The authority (if the user is authenticated).
- * @deprecated Replaced with doLogin(...) and doLogout().
- */
- public function setAuthenticated($auth, $authority = null) {
-
- SimpleSAML_Logger::debug('Library - Session: Set authenticated ' .
($auth ? 'yes': 'no'). ' authority:' .
- (isset($authority) ? $authority : 'null'));
-
- if ($auth) {
- if(!is_string($authority)) {
- $authority = 'null';
- }
- $this->doLogin($authority);
- } else {
- $this->doLogout();
- }
- }
-
public function setSessionDuration($duration) {
SimpleSAML_Logger::debug('Library - Session: Set session duration ' .
$duration);
$this->dirty = true;
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.