2009年5月16日星期六

Re: [fw-auth] Zend_Auth - Clashes

There's two things you can do that i can think of
1. modify the session namespace before authenticating, so the two different
types are done within another 'namespace'

$auth->setStorage(new Zend_Auth_Storage_Session('someNamespace'));

2. When you're setting the identity (with Zend_Auth_Result), pass an object
as the second parameter. So, when you do $auth->getIdentity(), it will also
return that object. Use different objects for the normal users and the admin
and you'll know who you are dealing with

-----
http://devshed.excudo.net http://devshed.excudo.net
--
View this message in context: http://www.nabble.com/Zend_Auth---Clashes-tp23558570p23580529.html
Sent from the Zend Auth mailing list archive at Nabble.com.

没有评论: