I want to create multiple instances of Zend_Auth class as I have two modules
- Admin
- Front
What’s happening is when I login into Admin, it automatically get logged into
Front or vice-versa.
What I want is to work in both modules separately after simultaneous authentication.
Zend_Auth is a singleton, so you can’t. What I do is to use Zend_Acl ensure that only users with a role of “admin” can get at the administration stuff.
To create a second Auth object, in principle, you could derive Zend_Auth to App_Auth and use a different session namespace. I’ve never tried this, but my starting code would look like this:
It’s possible that you have to override more.