DatabaseSessionHandler
extends BaseSessionHandler
in package
Table of Contents
- $blockingTimeout : int
- $lifeTime : int
- $prefix : string
- $session : string
- $table : string
- $app : App
- __construct() : mixed
- close() : bool
- delete() : bool
- destroy() : bool
- gc() : bool
- get() : string
- open() : bool
- read() : string
- set() : bool
- write() : bool
- auth() : Auth
- prefix() : string
- Session name prefix olarak kullanılacak
- request() : Request
- table() : QueryBuilder
Properties
$blockingTimeout
protected
int
$blockingTimeout
= -1
$lifeTime
protected
int
$lifeTime
= 78840000
$prefix
protected
string
$prefix
= ''
$session
protected
string
$session
$table
protected
string
$table
= 'sessions'
$app
private
App
$app
Methods
__construct()
public
__construct(App $app, array<string|int, mixed> $config) : mixed
Parameters
- $app : App
- $config : array<string|int, mixed>
Return values
mixed —close()
public
close() : bool
Tags
Return values
bool —delete()
public
delete(string $key) : bool
Parameters
- $key : string
-
session_id
Tags
Return values
bool —destroy()
public
destroy(mixed $id) : bool
Parameters
- $id : mixed
Tags
Return values
bool —gc()
public
gc(mixed $max_lifetime) : bool
Parameters
- $max_lifetime : mixed
Tags
Return values
bool —get()
public
get(string $key) : string
Parameters
- $key : string
-
session_id
Tags
Return values
string —Encoded string session data
open()
public
open(mixed $path, mixed $name) : bool
Parameters
- $path : mixed
- $name : mixed
Tags
Return values
bool —read()
public
read(mixed $id) : string
Parameters
- $id : mixed
Tags
Return values
string —set()
public
set(string $key, string $session_data) : bool
Parameters
- $key : string
-
session_id
- $session_data : string
Tags
Return values
bool —write()
public
write(mixed $id, mixed $data) : bool
Parameters
- $id : mixed
- $data : mixed
Tags
Return values
bool —auth()
protected
auth() : Auth
Return values
Auth —prefix()
Session name prefix olarak kullanılacak
protected
prefix(string $key) : string
Parameters
- $key : string
Return values
string —key with prefix
request()
protected
request() : Request
Return values
Request —table()
protected
table() : QueryBuilder