views:

495

answers:

3
A: 

I check that a user id exists : Zend_Auth::getInstance()->getIdentity()->id;

Maybe it's a problem with your login.

piddl0r
+1  A: 

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

Nicky De Maeyer
+5  A: 

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.

gnarf