Method |
Description |
|
clear ( ) : void |
Clears the contents of the session |
|
get ( string $key, integer | boolean | string | float | array | object | JsonSerializable $default = null ) : integer | boolean | string | float | array |
Retrieves a value from the session - if the value doesn't exist, then it uses the given $default, but transformed
into a immutable and safely manipulated scalar or array |
|
has ( string $key ) : boolean |
Checks whether a given key exists in the session |
|
hasChanged ( ) : boolean |
Checks whether the session has changed its contents since its lifecycle start |
|
isEmpty ( ) : boolean |
Checks whether the session contains any data |
|
remove ( string $key ) : void |
Removes an item from the session |
|
set ( string $key, integer | boolean | string | float | array | object | JsonSerializable $value ) : void |
Stores a given value in the session |
|