yxorP Documentation

Session
in package

Table of Contents

$autoUpdateTimestamp  : bool
$cookieLifetime  : int
$cookiePath  : string
$domain  : string
$gcProbability  : array<string|int, mixed>
$httpOnly  : bool
$lifetime  : int
$name  : string
$sameSite  : string
$secure  : bool
$_data  : string|array<string|int, mixed>|object|null
$_handler  : mixed
$_handlerClass  : string
$_handlerConfig  : mixed
$_needSave  : bool
$_sessionId  : mixed
__construct()  : mixed
__destruct()  : mixed
all()  : mixed
delete()  : mixed
exists()  : bool
flush()  : mixed
forget()  : mixed
gc()  : mixed
get()  : mixed
getCookieParams()  : array<string|int, mixed>
getId()  : mixed
handlerClass()  : string
has()  : bool
init()  : mixed
pull()  : mixed
put()  : mixed
refresh()  : mixed
save()  : mixed
set()  : mixed
checkSessionId()  : mixed
initHandler()  : mixed

Properties

$autoUpdateTimestamp

public static bool $autoUpdateTimestamp = false

$cookieLifetime

public static int $cookieLifetime = 1440

$cookiePath

public static string $cookiePath = '/'

$domain

public static string $domain = ''

$gcProbability

public static array<string|int, mixed> $gcProbability = [1, 1000]

$httpOnly

public static bool $httpOnly = true

$lifetime

public static int $lifetime = 1440

$name

public static string $name = 'PHPSID'

$sameSite

public static string $sameSite = ''

$secure

public static bool $secure = false

$_data

private string|array<string|int, mixed>|object|null $_data = []

$_handler

private static mixed $_handler = null

$_handlerClass

private static string $_handlerClass = \yxorP\protocols\Http\Session\fileSessionHandler::class

$_handlerConfig

private static mixed $_handlerConfig = null

$_needSave

private bool $_needSave = false

$_sessionId

private mixed $_sessionId = null

Methods

__construct()

public __construct(mixed $session_id) : mixed
Parameters
$session_id : mixed
Return values
mixed

__destruct()

public __destruct() : mixed
Tags
throws
Exception
Return values
mixed

all()

public all() : mixed
Return values
mixed

delete()

public delete(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

exists()

public exists(mixed $name) : bool
Parameters
$name : mixed
Return values
bool

flush()

public flush() : mixed
Return values
mixed

forget()

public forget(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

gc()

public gc() : mixed
Return values
mixed

get()

public get(mixed $name[, mixed $default = null ]) : mixed
Parameters
$name : mixed
$default : mixed = null
Return values
mixed

getCookieParams()

public static getCookieParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

getId()

public getId() : mixed
Return values
mixed

handlerClass()

public static handlerClass([mixed $class_name = null ][, mixed $config = null ]) : string
Parameters
$class_name : mixed = null
$config : mixed = null
Return values
string

has()

public has(mixed $name) : bool
Parameters
$name : mixed
Return values
bool

init()

public static init() : mixed
Return values
mixed

pull()

public pull(mixed $name[, mixed $default = null ]) : mixed
Parameters
$name : mixed
$default : mixed = null
Return values
mixed

put()

public put(mixed $key[, mixed $value = null ]) : mixed
Parameters
$key : mixed
$value : mixed = null
Return values
mixed

refresh()

public refresh() : mixed
Return values
mixed

save()

public save() : mixed
Return values
mixed

set()

public set(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed
Return values
mixed

checkSessionId()

protected static checkSessionId(mixed $session_id) : mixed
Parameters
$session_id : mixed
Return values
mixed

initHandler()

protected static initHandler() : mixed
Return values
mixed

Search results