Opened 7 years ago

Closed 7 years ago

#163 closed defect (invalid)

X-Cache corrupting PHP session information

Reported by: jsnyxx@… Owned by: moo
Priority: major Milestone: 1.3.0
Component: cacher Version: 1.2.2
Keywords: Cc:
Application: PHP Version: 5.2.5
Other Exts: SAPI: Irrelevant
Probability: Blocked By:
Blocking:

Description

Hi,

We are experiencing issues with version 1.2.2 of X-Cache and php 5.2.5 running on our centos 4.4 Linux server.

We have found that the php session data passed between the different pages of our php application gets lost occasionally, when X-Cache is enabled. This happens regardless of browser version used. After a refresh, the data is sometimes recovered.

Since disabling X-Cache we do not appear to be experiencing this issue any longer.

We created the following short script which reproduces the issue.

<?php
session_start();
$_SESSION['counter']++;
session_write_close();
print_r($_SESSION);
?>

With X-Cache enabled, we load this script into Firefox and then repeatedly hit refresh (often before the page finishes loading). With X-Cache enabled, the counter jumps position randomly after a period of time, e.g. we get an output of 1,2,3,4,5, 35,36,37,38,90,91,92, etc.

With X-cache disabled this does not happen, so we believe it is either a bug in X-Cache or possibly in php 5.2.5, which impacts on X-cache when it is enabled.

Hope you can help!

Change History (4)

comment:1 Changed 7 years ago by moo

  • PHP Version set to 5.2.5

see http://forum.lighttpd.net/topic/42805

pls downgrade to php 5.2.4 and retry it

comment:2 Changed 7 years ago by moo

  • pending changed from 0 to 1

comment:3 Changed 7 years ago by jsnyxx

Hi,

You are correct -- this is working fine in php 5.2.4, so php 5.2.5 is the problem.

FYI, I downloaded the latest snapshot (php 5.2.6 dated 10 February 2008) and this bug still remains, so the php dev team have not fixed it yet.

comment:4 Changed 7 years ago by moo

  • pending changed from 1 to 0
  • Resolution set to invalid
  • Status changed from new to closed

thx for your feedback, you may want to add a note/comment in the php bug 43476 43295

Note: See TracTickets for help on using tickets.