ashish.sharma wrote:
This seems to be a simple problem but for me it is very crucial. I have used Zend_Auth at 2 places on site as well as site's admin console. Now the problem which I am facing it that whenever I logged in the site's admin console and open the site in logged in session of admin the site header area shows me the links like "My Account | Logout". As I have used the suggested code and it is same for site and admin panel so I think it is checking the admin logged in session on the site itself and instead of showing me "Login" link it is finding the identity of admin session and showing me the link "My Account | Logout".
I short, it seems that the Zend_Auth sessions are conflicting / clashing here. Is there any way where I can differentiate the site's Zend_Auth and admin's Zend_Auth? Can't 2 different instances can be created be created of Zend_Auth?
Kindly suggest!
Ashish Sharma
The solution depends a bit on how your backend is structured. If the entities that can log in are completely different and have nothing to do with eachother, you should use two different adapters. If they are in essence the same entities, but with different rights, then you should use Zend_Acl