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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:31:30+00:00 2026-05-12T05:31:30+00:00

Hi I am having issues with my my sessions using Zend Framework 1.7.6. The

  • 0

Hi I am having issues with my my sessions using Zend Framework 1.7.6.

The problem exists when I try and store an array to the session, the session namespace also stores other userdata.

I am currently getting the following message in my stacktrace

Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - 
...

Error #2 session_start() [function.session-start]: Node no longer exists Array 

The code where I think this is erroring is:

//now we add the user object to the session
    $usersession = new Zend_Session_Namespace('userdata');
    $usersession->user = $user;

    //we now get the users menu map        
    $menuMap = $this->processMenuMap($menuMapPath);

    $usersession->menus = $menuMap;

This error has only started to appear since trying to add an array to the session namespace.

Any ideas what could be causing the Node no longer exists Array message?

Many 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-12T05:31:30+00:00Added an answer on May 12, 2026 at 5:31 am

    Are you trying to store a SimpleXML object or something else libxml related in the session data?
    That doesn’t work because the underlying DOM tree isn’t restored when the objects are unserialized during session_start(). Store the xml document (as string) instead.

    You can achieve that e.g. by providing the “magic functions” __sleep() and __wakeup(). But __sleep() has to return an array with the names of all properties that are to be serialized. If you add another property you also have to change that array. That removes some of the automagic…

    But if your menumap class has only a few properties it might be feasible for you.

    <?php
    class MenuMap {
        protected $simplexml = null;
        protected $xmlstring = null;
    
        public function __construct(SimpleXMLElement $x) {
            $this->simplexml = $x;
        }
    
        public function __sleep() {
            $this->xmlstring = $this->simplexml->asXML(); 
            return array('xmlstring');
        }   
    
        public function __wakeup() {
            $this->simplexml = new SimpleXMLElement($this->xmlstring);
            $this->xmlstring = null;
        }
    
        // ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue with storing sessions in a MySQL database using CGI::Session. Here
Still having issues with this problem. Please help if you can. So I am
I'm having issues with my SQL Reporting Services reports. I'm using a custom font
I'm having issues creating an ActionLink using Preview 5. All the docs I can
I was thinking about using memcached to store sessions instead of mySQL, which seemed
We are having issues with IIS6 slowdowns when using more than 1.2GB of RAM
I'm using CodeIgniter, and I'm having a small issue with sessions. I've set 'sess_expiration'
I'm having some issues implementing JPA 2.0 in my app. I'm using Criteria queries
I'm having an odd problem with my sessions. I haven't found a solution even
Having issues referencing $(this) from within a the nested ajax 'success' function... I know

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.