| Package | {{index::|}} |
|---|---|
| Inheritance | class CHttpSessionHandler |
| Implements | SessionHandlerInterface |
| Source Code | framework/web/CHttpSessionHandler.php |
| Method | Description | Defined By |
|---|---|---|
| __construct() | CHttpSessionHandler | |
| close() | CHttpSessionHandler | |
| destroy() | CHttpSessionHandler | |
| gc() | CHttpSessionHandler | |
| open() | CHttpSessionHandler | |
| read() | CHttpSessionHandler | |
| write() | CHttpSessionHandler |
|
public void __construct(CHttpSession $session)
| ||
| $session | CHttpSession | |
public function __construct(CHttpSession $session)
{
$this->_session=$session;
}
|
public bool close()
| ||
| {return} | bool | |
public function close()
{
return $this->_session->closeSession();
}
|
public bool destroy(string $id)
| ||
| $id | string | |
| {return} | bool | |
public function destroy($id)
{
return $this->_session->destroySession($id);
}
|
public int|false gc(int $max_lifetime)
| ||
| $max_lifetime | int | |
| {return} | int|false | |
public function gc($max_lifetime)
{
return $this->_session->gcSession($max_lifetime) ? 0 : false;
}
|
public bool open(string $path, string $name)
| ||
| $path | string | |
| $name | string | |
| {return} | bool | |
public function open($path, $name)
{
return $this->_session->openSession($path, $name);
}
|
public string|false read(string $id)
| ||
| $id | string | |
| {return} | string|false | |
public function read($id)
{
return $this->_session->readSession($id);
}
|
public bool write(string $id, string $data)
| ||
| $id | string | |
| $data | string | |
| {return} | bool | |
public function write($id, $data)
{
return $this->_session->writeSession($id, $data);
}
Signup or Login in order to comment.