Hello, Good idea indeed. It really also can be achieved by changing session.name But this case you need to make sure that you changing this value before session was started. So to achieve this you can add new resource to your bootstrap something like this: http://gist.github.com/426774
2010/6/5 Aurimas Likas <[email protected]>: > You can also simply put in module bootstrap different session name: > session_name('admin'); > > 2010/6/5 Aleksey Zapparov <[email protected]> >> >> 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! > > > > -- > Aurimas Likas > tel. +37067730631 > e-mail: [email protected] > URLs: http://magento.lt > -- 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!
