mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
@@ -64,7 +64,7 @@ class Memcached extends SessionHandler
|
|||||||
if('' != $this->config['username']){
|
if('' != $this->config['username']){
|
||||||
$this->handler->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);
|
$this->handler->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);
|
||||||
$this->handler->setSaslAuthData($this->config['username'], $this->config['password']);
|
$this->handler->setSaslAuthData($this->config['username'], $this->config['password']);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ class Memcached extends SessionHandler
|
|||||||
public function close()
|
public function close()
|
||||||
{
|
{
|
||||||
$this->gc(ini_get('session.gc_maxlifetime'));
|
$this->gc(ini_get('session.gc_maxlifetime'));
|
||||||
$this->handler->close();
|
$this->handler->quit();
|
||||||
$this->handler = null;
|
$this->handler = null;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user