Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get currently logged user details zend framework

i want to get user details who is logged on to my web site in zend framework .

like image 234
Kanishka Panamaldeniya Avatar asked May 01 '11 13:05

Kanishka Panamaldeniya


1 Answers

You can get the data that's stored in Zend_Auth like this:

$identity = Zend_Auth::getInstance()->getIdentity();

The $identity variable should now contain whatever data you stored into Zend_Auth when logging the user in.

like image 92
Jani Hartikainen Avatar answered Nov 15 '22 08:11

Jani Hartikainen