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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:20:43+00:00 2026-06-17T09:20:43+00:00

I am a beginer to zend. I want to know about namespaces. what this

  • 0

I am a beginer to zend. I want to know about namespaces.

  • what this code means?

    $a=new Zend_Session_Namespace(Zend_Registry::get(‘session_variable’));

please help me.

  • 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-06-17T09:20:44+00:00Added an answer on June 17, 2026 at 9:20 am

    Actually you might need to search on google before posting your question on stack overflow regarding Zend_Session_Namespace. There are no. of article available on google. But still here is some sort of basic guidance for you about Zend_Session_Namespace.

    The Zend Framework provides advanced session handling using the Zend_Session component. Using this component, you no longer need to access PHP’s $_SESSION global variable.

    Zend_Session uses namespaces to store your session data. That is, when you want to read or write session data you must first specify a namespace. This allows you to easily store different session data without worrying too much about other values stored in the session.

    Example:

    <?php
        require_once('Zend/Session.php');
        $session = new Zend_Session_Namespace('identity');
    
        //You can used it like this:
    
        $username= $session->username;
        $userid= $userid;
    ?>
    

    Read Zend Session Namespace from zend framework’s documentation for more details

    $a=new Zend_Session_Namespace(Zend_Registry::get('session_variable'));

    The above code means : You set your session in zend registry by using zend_registry’s set method somewhere (might be in bootstrap) and you are accessing it by using zend_registry's get method.

    If you are new in Zend Framework I recommend you to please go through following tutorial.

    http://www.phpeveryday.com/articles/Zend-Framework-Basic-Tutorial-P840.html

    http://framework.zend.com/manual/1.12/en/reference.html

    Hope it’ll help you.

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

Sidebar

Related Questions

Im a beginer to zend.I want to know what this code means...? $this->view->headMeta()->setName('robots',INDEX,FOLLOW); $this->view->headMeta()->setName('googlesite-verification',_3vNeAL1YnjfuONQpwHEIxrB1t_f70Vv7PRiDAA2DxI);
I am a beginner to Zend framework and I want to know more about
Well, now i have a new problem. Im writing code in C# I want
I am a beginer of compass sass,I want to know how to how to
I am a compass sass beginer. I don't want to upload this folder to
Excuse me if this is a silly question but i'm a beginer here. I
I beginer in zend framework. ob_start(ob_gzhandler) - why the function not use directly in
Note: I'm using Zend Framework, but I think most of this applies to PHP
I am new to svn. I want to run the following in a remote
I'm looking at some of the code I've written for Zend over the past

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.