mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 17:12:22 +01:00
29 lines
630 B
PHP
29 lines
630 B
PHP
--TEST--
|
|
Session persistent
|
|
--SKIPIF--
|
|
<?php
|
|
include dirname(__FILE__) . "/skipif.inc";
|
|
if (!Memcached::HAVE_SESSION) die ('skip session support disabled');
|
|
if (Memcached::LIBMEMCACHED_VERSION_HEX < 0x01000018) die ('skip too old libmemcached');
|
|
?>
|
|
--INI--
|
|
session.save_handler=memcached
|
|
memcached.sess_persistent=1
|
|
--FILE--
|
|
<?php
|
|
include dirname (__FILE__) . '/config.inc';
|
|
ini_set ('session.save_path', MEMC_SERVER_HOST . ':' . MEMC_SERVER_PORT);
|
|
|
|
session_start();
|
|
$_SESSION['test']=true;
|
|
session_write_close();
|
|
session_start();
|
|
var_dump($_SESSION);
|
|
session_write_close();
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
["test"]=>
|
|
bool(true)
|
|
}
|