I have this to store persistent data for an authenticated user;
// We're authenticated! Store details.
$identity = $adapter-getResultRowObject();
$authStorage = $auth-getStorage();
$authStorage-write($identity);
I would like to add one extra bit of info to the persistent storage.
On Friday 01 Apr 2011 16:15:34 Steve Rayner wrote:
I have this to store persistent data for an authenticated user;
// We're authenticated! Store details.
$identity = $adapter-getResultRowObject();
$authStorage = $auth-getStorage();
$authStorage-write($identity);
I would
Since you are using Zend_Auth_Adapter_DbTable, and calling
$adapter-getResultRowObject(); .. The resulting object is simply a
stdClass.
If you'd like you can add information to that identity object.
$identity-someProperty = $someValue;
Then write that to the authentication storage medium.