Return the contents of the session in array form.
Remove a key/value pair from the session.
Parameters:
|
string |
$name: |
The name of the key to remove. |
string get(
string
$name, [string
$default = null]
)
|
|
Get a key's value from the session.
Parameters:
|
string |
$name: |
The name of the key to retrieve. |
|
string |
$default: |
The optional value to return if the key is not found in the session. |
API Tags:
| Return: | The key's value in the session or $default if it isn't found. |
void set(
string
$name, string
$value
)
|
|
Set a session key/value pair.
Parameters:
|
string |
$name: |
The name of the session key to add. |
|
string |
$value: |
The value to add to the session. |