Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1026355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:04:12+00:00 2026-05-16T12:04:12+00:00

on my project website users are able to login and move from page to

  • 0

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:

$authAdapter->setIdentity($email)
        ->setCredential($password);

...

$identity = $authAdapter->getResultRowObject(); 
$authStorage = $auth->getStorage();
$authStorage->write($identity);

Now I try to read this storage in another controller:

$auth = Zend_Auth::getInstance();
$authStorage = $auth->getStorage();
$user = $authStorage->read()->email;

…but $user stays null. any ideas how to solve that problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:04:12+00:00Added an answer on May 16, 2026 at 12:04 pm

    This line jumped out at me:

    $user = $authStorage->read()->email;
    

    It doesnt appear that you set the “email” anywhere but a username and password for a person.

    Try this

    print_r($authStorage->read());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm inherited an ASP.NET website project where they have used Windows Authentication. The admin
I've been assigned a project for a website where users will be allowed to
I have a Website project that I'm trying to debug using Fiddler. Fiddler doesn't
I have a website project that I want to build using CruiseControl.net. On one
I've got a website project under version control that relies on files from an
I have a C# solution with a website project and a C# library. When
A number of team members update a central ASP.NET dev Website project, not a
I'm working with .Net using VB and have just finished a website project and
I am going to work on a video website where users/admin will be able
I have a project (private, ASP.net website, password protected with https) where one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.