X-Cache corrupting PHP session information
|Reported by:||jsnyxx@…||Owned by:||moo|
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!