Hi all,

Migrated to a new server and I'm now encountering unexpected Memcache 
session behaviors.
First my config :

- Windows Server 2008 R2
- PHP 5.6.0 x64
- Apache 2.4 x64
- Memcached 1.4.2 x64 running as service
- php_memcache.dll (3.0.8)

Memcache appears fine in phpinfo().

In my php.ini file I have :
- session.save_handler = memcache
- session.save_path = "tcp://127.0.0.1:11211"

Running a standard $memcache = new Memcache test, everything works fine.

Issues arise when using 2 distinct files (or more) :

 Test1.php contains :
<?
session_start();
$_SESSION["test"][] = rand(0,10000);
var_dump($_SESSION);
?>

When loading it several times, the $_SESSION["test"] array keeps growing 
and appears on the page.

Test2.php contains :
<?
session_start();
$_SESSION["tmp"] = "a";
var_dump($_SESSION);
?>

When loading this one once, $_SESSION["tmp"] is added fine next to 
$_SESSION["test"].
But if I reload this file, $_SESSION is unexpectedly reset and contains 
only $_SESSION["tmp"] !

And help/suggestions appreciated !

FYI :

> When Test2.php is a clone of Test1.php, reloading one and the other 
several times makes the $_SESSION["test"] grow as expected.
> same issue when setting session.save_path = 
"tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=7200&retry_interval=10"
 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to