CookieSessionHandler
extends Component
in package
implements
ISessionHandler
Uses
TSessionHandler
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $expires : int
- The number of seconds after the session cookie is set that it should expire.
- $domain : string
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- close() : bool
- destroy() : bool
- extends() : bool
- gc() : int|false
- getDomain() : string
- getExpires() : int
- getReflection() : ReflectionClass
- open() : bool
- read() : string|false
- setExpires() : void
- write() : bool
- init() : mixed
- setDomain() : void
Properties
$expires
The number of seconds after the session cookie is set that it should expire.
protected
int
$expires
= 0
Tags
$domain
private
string
$domain
The (sub)domain that the cookie is available to.
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(string $domain[, string $expires = 0 ]) : mixed
Parameters
- $domain : string
-
The (sub)domain that the cookies that are written is available to.
- $expires : string = 0
-
The number of seconds after the session cookie is set/session is created that it should expire.
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
close()
public
close() : bool
Return values
booldestroy()
public
destroy(string $session_id) : bool
Parameters
- $session_id : string
Tags
Return values
boolextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgc()
public
gc(int $maxlifetime) : int|false
Parameters
- $maxlifetime : int
Return values
int|falsegetDomain()
public
getDomain() : string
Return values
stringgetExpires()
public
getExpires() : int
Return values
intgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassopen()
public
open(mixed $save_path, mixed $session_name) : bool
Parameters
- $save_path : mixed
- $session_name : mixed
Tags
Return values
boolread()
public
read(string $session_id) : string|false
Parameters
- $session_id : string
Return values
string|falsesetExpires()
public
setExpires(int $expires) : void
Parameters
- $expires : int
write()
public
write(string $session_id, string $session_data) : bool
Parameters
- $session_id : string
- $session_data : string
Tags
Return values
boolinit()
protected
init() : mixed
setDomain()
private
setDomain(string $domain) : void
Parameters
- $domain : string