SessionHandler
API reference › yii › web › SessionHandler
SessionHandler implements an SessionHandlerInterface for handling Session with custom session storage.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | SessionHandler | |
close() | SessionHandler | |
destroy() | SessionHandler | |
gc() | SessionHandler | |
open() | SessionHandler | |
read() | SessionHandler | |
write() | SessionHandler |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(yii\web\Session $session)Parameters
| Parameter | Type | Description |
|---|---|---|
$session | Session |
destroy()
Section titled “destroy() ”public function destroy(mixed $id): boolParameters
| Parameter | Type | Description |
|---|---|---|
$id | mixed |
Returns
bool
public function gc(mixed $max_lifetime): mixedParameters
| Parameter | Type | Description |
|---|---|---|
$max_lifetime | mixed |
Returns
mixed
open()
Section titled “open() ”public function open(mixed $path, mixed $name): boolParameters
| Parameter | Type | Description |
|---|---|---|
$path | mixed | |
$name | mixed |
Returns
bool
read()
Section titled “read() ”public function read(mixed $id): mixedParameters
| Parameter | Type | Description |
|---|---|---|
$id | mixed |
Returns
mixed
write()
Section titled “write() ”public function write(mixed $id, mixed $data): boolParameters
| Parameter | Type | Description |
|---|---|---|
$id | mixed | |
$data | mixed |
Returns
bool