php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68737 when set session.save_handler=memcache, the session will dispeared in seconds w
Submitted: 2015-01-04 08:40 UTC Modified: 2021-03-25 16:38 UTC
From: bertcy at qq dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.4.36 OS: windows server2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bertcy at qq dot com
New email:
PHP Version: OS:

 

 [2015-01-04 08:40 UTC] bertcy at qq dot com
Description:
------------
descriptions:
1.changes in php.ini:
short_open_tag = On
precision = 16
output_buffering = Off
max_execution_time = 0
memory_limit = 512M
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
display_errors = On
variables_order = "EGPCS"
register_argc_argv = On
post_max_size = 100M
default_socket_timeout = 120
2.extensions
extension=php_xsl.dll
extension=php_zip.dll
extension=php_memcache.dll
extension=php_mcrypt.dll
autoglobals_jit = Off
extension=php_com_dotnet.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_shmop.dll
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_curl.dll


Test script:
---------------
1、set_session.php
set_time_limit(0);
session_start();
$memcache = new Memcache();
$memcache->connect('127.0.0.1', '11211');
$i = 1800;
$str = '__';
while ($i > 0)
{
	$_SESSION['mem_session_' . $i] = $i;
	$i--;
}
2、print_session.php

header('Refresh:'. (!empty($_GET['t']) ? $_GET['t'] : 5));
session_start();

echo '<pre>', print_r($_SESSION, true) , '</pre>';

Expected result:
----------------
numbers setted in sessions.

Actual result:
--------------
empty array.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-25 16:38 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:38 UTC] cmb@php.net
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC