I check that a user id exists : Zend_Auth::getInstance()->getIdentity()->id;
Maybe it's a problem with your login.
piddl0r
2009-09-24 08:23:55
I check that a user id exists : Zend_Auth::getInstance()->getIdentity()->id;
Maybe it's a problem with your login.
are you sure your identity is persisted? (ie. stored in the session or somthing similar) if not you will have to re-authenticate on each request
Are you ever calling Zend_Auth::getInstance()->getStorage()->write($identity)
?
If you are authenticating through Zend_Auth::getInstance()->authenticate($adapter)
it will write to storage for you, but if you are calling authenticate directly on the adapter, you are responsible for writing the identity to the storage.