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: -
From: bertcy at qq dot com Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.4.36 OS: windows server2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 05:01:25 2019 UTC