0 follower

CHttpSessionHandler

Package {{index::|}}
Inheritance class CHttpSessionHandler
Implements SessionHandlerInterface
Source Code framework/web/CHttpSessionHandler.php
SessionHandlerInterface adapter for CHttpSession. Delegates all calls to CHttpSession's openSession/closeSession/etc. methods, allowing subclasses like CDbHttpSession to work without modification.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() CHttpSessionHandler
close() CHttpSessionHandler
destroy() CHttpSessionHandler
gc() CHttpSessionHandler
open() CHttpSessionHandler
read() CHttpSessionHandler
write() CHttpSessionHandler

Method Details

__construct() method
public void __construct(CHttpSession $session)
$session CHttpSession
Source Code: framework/web/CHttpSessionHandler.php#26 (show)
public function __construct(CHttpSession $session)
{
    
$this->_session=$session;
}

close() method
public bool close()
{return} bool
Source Code: framework/web/CHttpSessionHandler.php#46 (show)
public function close()
{
    return 
$this->_session->closeSession();
}

destroy() method
public bool destroy(string $id)
$id string
{return} bool
Source Code: framework/web/CHttpSessionHandler.php#77 (show)
public function destroy($id)
{
    return 
$this->_session->destroySession($id);
}

gc() method
public int|false gc(int $max_lifetime)
$max_lifetime int
{return} int|false
Source Code: framework/web/CHttpSessionHandler.php#87 (show)
public function gc($max_lifetime)
{
    return 
$this->_session->gcSession($max_lifetime) ? false;
}

open() method
public bool open(string $path, string $name)
$path string
$name string
{return} bool
Source Code: framework/web/CHttpSessionHandler.php#37 (show)
public function open($path$name)
{
    return 
$this->_session->openSession($path$name);
}

read() method
public string|false read(string $id)
$id string
{return} string|false
Source Code: framework/web/CHttpSessionHandler.php#56 (show)
public function read($id)
{
    return 
$this->_session->readSession($id);
}

write() method
public bool write(string $id, string $data)
$id string
$data string
{return} bool
Source Code: framework/web/CHttpSessionHandler.php#67 (show)
public function write($id$data)
{
    return 
$this->_session->writeSession($id$data);
}