summaryrefslogtreecommitdiff
path: root/framework/Security
diff options
context:
space:
mode:
authorxue <>2006-01-24 23:21:08 +0000
committerxue <>2006-01-24 23:21:08 +0000
commit3f803219e784b53f363b5ef25b3be00fd310fb1c (patch)
treec606dea115d680a850c19e6a5da82f83e0a63fcf /framework/Security
parentfd1af57313ceeed7a4ffc29e45455df666d30f3c (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')
-rw-r--r--framework/Security/TAuthManager.php4
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());
}
}