|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-07-26 11:32 UTC] eliseo dot carrasco at funiber dot org
[2021-03-25 16:35 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-03-25 16:35 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ I have tried this eight ways to Sunday. I have created working test cases on multiple servers with different combinations of settings to try and figure out why the failover does not work. We have php5.3.8, pecl-memcache-3.0.6, memcached-1.4.7 with repcached. Upon session_start() a key is successfully created in memcache. Repcached does replicate it over to the other server and can be verified by telnet. When we simulate a failure, the session handler does not fail over to the next available server listed in the save_path. Current configuration: session.save_handler = memcache session.save_path = "tcp://ip1:11211, tcp://ip2:11211" memcache.allow_failover="1" memcache.hash_strategy="consistent" We have tried to get it work with and without the below ini settings in different combinations: memcache.session_redundancy=2 memcache.redundancy=1 Test script: --------------- <?php session_start(); if(!isset($_SESSION['id'])) { echo "VAR NOT SET!\n<br>"; $_SESSION['id']=rand(); }else { echo $_SESSION['id']."\n<br>"; } ?>