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
No description
Details
void
__construct(string $name = 'inphinit', string|null $id = null, array $opts = array())
Create cookie session and configure session
void
commit(bool $unlock = true)
Lock session file and save variables
void
regenerate(string|null $id = null, $deleteold = false)
Regenerate ID
mixed
get(string $path = null, string $alternative = null)
Get all values like array or get specific item by level (multidimensional) using path
void
__clone()
Prevent clone session object
mixed
__get(string $name)
Magic method for get session variables (this method also returns variables that have not yet been committed)
void
__set(string $name, mixed $value)
Magic method for set session variables (this method don't commit data)
bool
__isset(string $name)
Magic method for check if variable is setted (this method also returns variables that have not yet been committed)
void
__unset(string $name)
Magic method for unset variable with unset() function
__destruct()
No description