Hello, Zend_Auth uses Zend_Auth_Storage_Session (by default) to keep auth data. And this storage has it's namespace which is 'Zend_Auth' by default. But you can change Zend_Auth's storage to your one with Zend_Auth::setStorage() method. So you can write something similar inside your bootstrap: http://gist.github.com/426439
Alternatively you can extend Zend_Auth like this: http://gist.github.com/426448 2010/6/5 shahrzad khorrami <[email protected]>: > hi all, > > I have two module: account, admin > > I want each of them have their authentication to login... > for their auth, I created two controller in each module(AuthController.php) > now we have just hasIdentify to auth.. but how I say it that it is account > and other is admin... > now when I login each index module login....... > > Admin_IndexController > public function init() > { > /* Initialize action controller here */ > $auth = Zend_Auth::getInstance(); > if (!$auth->hasIdentity()) { > Zend_Auth::getInstance()->clearIdentity(); > $this->_redirect('/admin/auth/login'); > } > else{ > $this->_forward('index'); > } > } > > > How we can implement account login and admin panel login in zend (two > different authentiation in zend????????) > > Thanks, > Shahrzad Khorrami > -- Sincerely yours, Aleksey V. Zapparov A.K.A. ixti FSF Member #7118 Mobile Phone: +34 617 179 344 Homepage: http://www.ixti.ru JID: [email protected] *Origin: Happy Hacking!
