Read AuthStorage, Zend Framework

on my project website users are able to login and move from page to page on my site by being logged in. so they do not have to log in again for moving to another section on my page. to achieve that I use the storage of Zend_Auth.Following code shows how I write storage:\[code\]$authAdapter->setIdentity($email) ->setCredential($password);...$identity = $authAdapter->getResultRowObject(); $authStorage = $auth->getStorage();$authStorage->write($identity);\[/code\]Now I try to read this storage in another controller:\[code\]$auth = Zend_Auth::getInstance();$authStorage = $auth->getStorage();$user = $authStorage->read()->email;\[/code\]...but $user stays null. any ideas how to solve that problem?
 
Back
Top