The following should allow you to create a new Zend_Auth identifier upon successful login:
$identity = Zend_Auth::getInstance()->getStorage(); $identity->write($userData);
As far as user data is concerned, I usually store the database row corresponding to the user, with the necessary fields, such as First name, Last name, Email address, Role, to name a few. If you store Zend_Db_TableRow in Zend_Auth , you can access it as follows:
Zend_Auth::getInstance()->getIdentity()->role;
A quick reminder of Zend_Auth :
$auth = Zend_Auth::getInstance();
You can read the official documentation for more details: Zend_Auth
source share