Session
class Session (View source)
Methods
Create cookie session and configure session
Lock session file and save variables
Regenerate ID
Get all values like array or get specific item by level (multidimensional) using path
Prevent clone session object
Magic method for get session variables (this method also returns variables that have not yet been committed)
Magic method for set session variables (this method don't commit data)
Magic method for check if variable is setted (this method also returns variables that have not yet been committed)
Magic method for unset variable with unset()
function
Details
at line 36
void
__construct(string $name = 'inphinit', string|null $id = null, array $opts = array())
Create cookie session and configure session
at line 97
void
commit(bool $unlock = true)
Lock session file and save variables
at line 133
void
regenerate($id = null, $deleteold = false)
Regenerate ID
at line 269
mixed
get(string $path = null, string $alternative = null)
Get all values like array or get specific item by level (multidimensional) using path
at line 284
void
__clone()
Prevent clone session object
at line 296
mixed
__get(string $name)
Magic method for get session variables (this method also returns variables that have not yet been committed)
at line 311
void
__set(string $name, mixed $value)
Magic method for set session variables (this method don't commit data)
at line 332
bool
__isset(string $name)
Magic method for check if variable is setted (this method also returns variables that have not yet been committed)
at line 343
void
__unset(string $name)
Magic method for unset variable with unset()
function