Documentation

Session
in package

This class wraps handlers for $_SESSION to make it more easily workable.

Table of Contents

Properties

$auth_sessionToken  : string|null
$flushRewriteOnNextLoad  : bool|null
$people  : array<string|int, mixed>
$primaryFam  : array<string|int, int>
$secondaryFam  : array<string|int, int>
$updateDeployedScriptsOnNextLoad  : bool|null

Methods

__get()  : mixed|null
Standard getter, though returns null if unset or session isn't established.
__set()  : void
Standard setter
instance()  : Session|null
sessionDestroy()  : bool
startSession()  : bool
Start a session if one doesn't already exist.

Properties

$auth_sessionToken

public string|null $auth_sessionToken

$flushRewriteOnNextLoad

public bool|null $flushRewriteOnNextLoad

$people

public array<string|int, mixed> $people

$primaryFam

public array<string|int, int> $primaryFam

$secondaryFam

public array<string|int, int> $secondaryFam

$updateDeployedScriptsOnNextLoad

public bool|null $updateDeployedScriptsOnNextLoad

Methods

__get()

Standard getter, though returns null if unset or session isn't established.

public __get(string $what) : mixed|null
Parameters
$what : string
Return values
mixed|null

__set()

Standard setter

public __set(string $what, mixed $value) : void
Parameters
$what : string
$value : mixed

sessionDestroy()

public static sessionDestroy() : bool
Return values
bool

startSession()

Start a session if one doesn't already exist.

public static startSession([array<string|int, mixed> $options = [] ]) : bool
Parameters
$options : array<string|int, mixed> = []

Options passed directly to session_start, but only if the session isn't yet active.

Return values
bool

True if a session has been started (with this call or previously)


        
On this page

Search results