I suggest you take a look at zend_acl if you want different people having different access.
Zend_Auth is purely for authentication, verifying that someone is who he says he is.
Zend_Acl is all about access control and defining what role can see what resources. A user logged in via zend auth and having the admin role, could see the admin for instance. If another has the viaitor role, he could for instance only see his account page.
Hope this helps,
Wkr
Jeroen
---
Jeroen Keppens
+32 475 62.42.64
On 09 Jul 2010, at 15:26, sina miandashti <miandashti@gmail.com> wrote:
> hi
>
> for example i have a user name pass for admin
>
> that he can manage his account
> and he can also go to admin controller
>
> i want if he logged in account not allow him to use admin controller too !
>
> he have to login again
>
>
> i mean i want to 2 authenticate with zend_auth !
>
>
> any solution ?
>
> --
> ________________
> Sincerely
> Sina Miandashti
> MuSicBasE.ir & InvisionPower.ir Admin
没有评论:
发表评论