Session
class Session (View source)
Constants
| BYTES_LENGTH |
|
| CREATE_TIMEOUT |
|
| LOCK_TIMEOUT |
|
Methods
Reads and stores session data and creates a cookie
Save session data
Get current ID from session
Generates a new session containing a copy of the data, under a new ID
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
__construct($config)
Reads and stores session data and creates a cookie
commit()
Save session data
string
getId()
Get current ID from session
regenerate()
Generates a new session containing a copy of the data, under a new ID
mixed
__get(string $name)
Magic method for get session variables (this method also returns variables that have not yet been committed)
__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)
__unset(string $name)
Magic method for unset variable with unset() function
__destruct()
No description