改进session驱动

This commit is contained in:
thinkphp
2016-09-09 11:44:53 +08:00
parent 827edfc7b9
commit ebaaf6181c
2 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ class Memcache extends SessionHandler
protected $handler = null; protected $handler = null;
protected $config = [ protected $config = [
'host' => '127.0.0.1', // memcache主机 'host' => '127.0.0.1', // memcache主机
'port' => 1121, // memcache端口 'port' => 11211, // memcache端口
'expire' => 3600, // session有效期 'expire' => 3600, // session有效期
'timeout' => 0, // 连接超时时间(单位:毫秒) 'timeout' => 0, // 连接超时时间(单位:毫秒)
'persistent' => true, // 长连接 'persistent' => true, // 长连接

View File

@@ -19,7 +19,7 @@ class Memcached extends SessionHandler
protected $handler = null; protected $handler = null;
protected $config = [ protected $config = [
'host' => '127.0.0.1', // memcache主机 'host' => '127.0.0.1', // memcache主机
'port' => 1121, // memcache端口 'port' => 11211, // memcache端口
'expire' => 3600, // session有效期 'expire' => 3600, // session有效期
'timeout' => 0, // 连接超时时间(单位:毫秒) 'timeout' => 0, // 连接超时时间(单位:毫秒)
'session_name' => '', // memcache key前缀 'session_name' => '', // memcache key前缀