SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist Jhorra's Avatar
    Join Date
    Sep 2004
    Location
    Phoenix, Az
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about authentication and the Zend Framework

    This is what I'm using to write the data after a user is logged in:

    Code:
    //$auth is this -> $auth = Zend_Auth::getInstance();
    $data = $authAdapter->getResultRowObject(null,'password');
    $auth->setStorage()->write($data);
    I understand that it uses sessions to write the data, but how do i get it back to read it?

  2. #2
    SitePoint Evangelist Jhorra's Avatar
    Join Date
    Sep 2004
    Location
    Phoenix, Az
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I figured it out. You can use:
    $store = $auth->getStorage();
    $store is an object, so you can then do:
    $values = store->read();

    $values is then an array of the values.

  3. #3
    SitePoint Evangelist Jhorra's Avatar
    Join Date
    Sep 2004
    Location
    Phoenix, Az
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, not quite as clever as I thought. I can't seem to figure out how to get the $auth back on the other pages.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •