0

I need to know if a user is logged in with zend framework.
I have my LoginController who create a instance of Zend_Auth, but I don't know how to do to check if the user is really logged in ...

thanks

1 Answers1

0

First, you should give us your code ...
Then, if you want to know if a user is logged in, you can do it like that

if(Zend_Auth::getInstance()->hasIdentity()){
   //user is logged in
}else{
   //user not logged in
}

You could also make some search by yourself
How to check if user is logged with Zend Framework?
how to get currently logged user details zend framework

Community
  • 1
  • 1
FBHY
  • 1,004
  • 1
  • 15
  • 35