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 4347486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:18:46+00:00 2026-05-21T12:18:46+00:00

I am trying to work out the best configuration for my Zend Session Namespaces.

  • 0

I am trying to work out the best configuration for my Zend Session Namespaces.

I have two categories of data that I need to track in a user’s session. The first is confidental data related to the user. When the user logs out, the information should be removed from the session.

The second category of data contains non-confidential information related to the usage patterns of the particular user agent. It should persist once the user logs out.

I am using Zend_Auth, and so have an Auth namespace in the session. I think that I should persist the other user-related data in this session. (I presume that Zend_Auth::getInstance()->clearIdentity() will destroy the entire namespace).

Furthermore, I think I need a second namespace for storing the UA-related info, one that will not be destroyed on logout.

Does this sound reasonable? I’d be keen to hear from anyone who has experience using the Auth namespace to store additional info.

Thanks!

  • 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-21T12:18:47+00:00Added an answer on May 21, 2026 at 12:18 pm

    After experimenting with this I found that it was safer to leave Zend Auth’s session namespace alone. Instead, I have set up an alternative namespace in the session for all data that should be removed on logout, and I am using namespaceUnset to kill it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use a formula that is used to work out
Im trying to work out the best way scale my site, and i have
I am trying to work out the best approach for a data migration. I
Hi I have been trying to work out the best way to do this
I am trying to work out the best database model for the current setup:
I'm trying to work this out. In my project, i have a file called
i'm trying to work out the best method to perform logging in the application
I'm trying to work out the best way to setup our multi-module Apache Maven
I'm trying to work out in my head the best way to structure a
I am trying to work out the best database(s) considering the following requirements: The

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.