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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:43:36+00:00 2026-05-20T15:43:36+00:00

We are using Zend Framework 1.7 on a project (old, I know) and just

  • 0

We are using Zend Framework 1.7 on a project (old, I know) and just made a change to move the session data from files to the database. This appears to be working fine in both environments we deployed it in.

However, there is one big difference: in environment A (PHP 5.2), the session data is being stored in a plaintext serialized format, e.g.:

key|[php serialized array]

In environment B (PHP 5.3), the data appears to be getting base64 encoded somehow:

IpgJ4fbSZ0v2qi4RmGcgQ9tP7YEUyN1R9-7oroGl4071fnlk_UVkkrkUcpdHdw_UsRYy-6NpL61gTuL2Htcmv3HU5UM3ClwSDndY40kyimDPs3SdS7gNHwhwdpailLOfrIxqV48hZDhNHKlIpSX2QZm0jOHjRhZc2kjXnMgqioLqJiDdgyUCRnqKcZ_ZtBISq8BAZARW61P5Ls_ZSO506ltuNqIJIJGkV2R7qvDKLLCtxUQUwd7P8IlJiC7iq_Q4GIn3gMr0KwAHLP6adzxSusVk5begrx9lBk9Dxp8KkJ8Gx8rfKJfvVBIJKZgmsFsWq41dV0J4y1Lgihvx9nU73g..

Both environments appear to be working otherwise, but I need to make sure we understand why this is happening, and I can’t seem to find any documentation or similar situation anywhere. My assumption is that the difference in PHP version and/or configuration in php.ini is influencing it, but I am at a loss as to how.

  • 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-20T15:43:37+00:00Added an answer on May 20, 2026 at 3:43 pm

    I had the same problem today on a clustered server, in one I had php 5.2 and in the other php 5.3.

    My initial guess was also a version problem, but I found so far that suhosin was the problem since was encrypting the session.

    You can decrypt the session, just in the machine it was encrypted; to do you you should change the following in your php.ini:

    suhosin.session.encrypt = on
    suhosin.cookie.encrypt = on
    session.save_handler = files
    session.save_path = /tmp
    

    and later write a script like:

    $data = $argv[1];
    $sessid = 'recovering';
    file_put_contents("/tmp/sess_{$sessid}", $data);
    
    session_id($sessid);
    session_start();
    print_r($_SESSION);
    

    Which will only copy the encrypted string into a sess file and print contents (you can serialize to match the normal session behavior)

    Of course if you want later that php don’t encrypt through suhosin, you need to set .encrypt = off

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

Sidebar

Related Questions

Hi all I am using Zend framework for my PHP project. Basically I have
Currently I'm working on a project using Zend framework and the message notification dialog
Working on a project with the Zend Framework, I am using Propel ORM with
I am using Zend Framework(MVC part of it), and need to either redirect user
I am using the Zend Framework. I have a controller named 'UserController' that has
I have been using the Zend Framework with an MVC configuration, read about Ruby
This is my first experience using the Zend Framework. I am attempting to follow
I am considering to use Zend Framework in a future project in a Linux
i have been using a modular structure for my zend framework application. This is
I am new to Zend Framework, but planning to create quite a complex project

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.