| Methods |
protected
|
validate_session_data(Hm_Request $request): void
|
#
|
protected
|
start_session_data(Hm_Request $request): void
|
#
|
public
|
get(string $name, mixed $default = false, bool $user = false): mixed
Return a session value, or a user settings value stored in the session
Return a session value, or a user settings value stored in the session
Parameters
| $name |
session value name to return
|
| $default |
value to return if $name is not found
|
| $user |
if true, only search the user_data section of the session
|
Returns
the value if found, otherwise $default
Overriden by
|
#
|
public
|
set(string $name, string $value, bool $user = false): void
Save a value in the session
Save a value in the session
Parameters
| $name |
the name to save
|
| $value |
the value to save
|
| $user |
if true, save in the user_data section of the session
|
Overriden by
|
#
|
public
|
del(string $name): void
Delete a value from the session
Delete a value from the session
Parameters
| $name |
name of value to delete
|
Overriden by
Implements
|
#
|
public
|
save_data(): void
Save session data
|
#
|