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

  • Home
  • SEARCH
  • 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 8654093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:42:02+00:00 2026-06-12T14:42:02+00:00

I try to build a simple refresh counter in the zend framework with zend_session_namespace,

  • 0

I try to build a simple refresh counter in the zend framework with zend_session_namespace, but it is not working as expected. I can’t call the namespace after it is set. In the examble below the code shows “1” again and again. Any advise for troubleshooting?

Zend_Session::start();
$defaultNamespace = new Zend_Session_Namespace('numbertester');

// Increment page views
if(isset($defaultNamespace->number)){
    // The code is never entering here
    $defaultNamespace->number++;
} else {
    $defaultNamespace->number = 1;
}

echo $defaultNamespace->number;

UPDATE

I found this script to test the session config. When I run it on the server it end up in the last part and tells me, that my session config it incorrect. I am not sure what to do from here?

if( function_exists('ini_get') &&
    in_array(strtolower(ini_get('session.save_handler')), array('user', 'users')) ) {
  if( function_exists('ini_set') &&
      false !== ini_set('session.save_handler', 'files') &&
      false !== ini_set('session.save_path', APPLICATION_PATH . '/temporary/session/') ) {
    if( !is_writable(APPLICATION_PATH . '/temporary/session/') ) {
      throw new Exception('Please set full permissions on temporary/session (chmod 0777).');
    }
  } else {
    throw new Exception('Your session configuration is incorrect and ' .
        'could not be automatically corrected. Please set ' .
        'session.save_handler=files and session.save_path=/tmp (or your ' .
        'temporary directory on non-Linux OSes.');
  }
}
  • 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-12T14:42:04+00:00Added an answer on June 12, 2026 at 2:42 pm

    May be your problem is somewhere else because I tested the code and its working on my side. For details please review this :

    http://framework.zend.com/manual/1.12/en/zend.session.basic_usage.html

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

Sidebar

Related Questions

I'm new to Zend framework and have decided to try to build a simple
I try to build a really simple screensaver, but it is not as easy
I'm trying to build a simple scheduler using Quartz.NET, but when I try to
I try to build a very simple website where one can add data into
I want to learn and work with initialize.php so I try to build simple
I try to build simple Java EE application that uses JPA + EJB3 and
I'm currently working on some school project; we are developing a simple RPG, but
I am familar developing .net web apps. Try to attempt to build a simple
I try to build a very simple calculator supporting x,y,+,-,*,/(,). The idea is simple:
I try to build a simple iPhone app. I want to create a custom

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.