diff options
author | xue <> | 2006-01-24 23:21:08 +0000 |
---|---|---|
committer | xue <> | 2006-01-24 23:21:08 +0000 |
commit | 3f803219e784b53f363b5ef25b3be00fd310fb1c (patch) | |
tree | c606dea115d680a850c19e6a5da82f83e0a63fcf /framework/Security/TAuthManager.php | |
parent | fd1af57313ceeed7a4ffc29e45455df666d30f3c (diff) |
Modified THttpRequest and THttpSession so that they can be used like an array. Items properties are removed as a result.
Diffstat (limited to 'framework/Security/TAuthManager.php')
-rw-r--r-- | framework/Security/TAuthManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index ca0be56e..c46e32c1 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -194,7 +194,7 @@ class TAuthManager extends TModule if(($session=$application->getSession())===null)
throw new TConfigurationException('authmanager_session_required');
$session->open();
- $sessionInfo=$session->getItems()->itemAt($this->generateUserSessionKey());
+ $sessionInfo=$session->itemAt($this->generateUserSessionKey());
$user=$this->_userManager->getUser(null)->loadFromString($sessionInfo);
$application->setUser($user);
}
@@ -238,7 +238,7 @@ class TAuthManager extends TModule if(($session=$this->getSession())===null)
throw new TConfigurationException('authmanager_session_required');
else
- $session->getItems()->add($this->generateUserSessionKey(),$user->saveToString());
+ $session->add($this->generateUserSessionKey(),$user->saveToString());
}
}
|