Session
class Session
Supports functions for user sessions. This class never gets instantiated.
Constants
| INFO |
info alert |
| SUCCESS |
success alert |
| WARNING |
warning alert |
| DANGER |
danger alert |
| PRIMARY |
primary alert |
| SECONDARY |
secondary alert |
| DARK |
dark alert |
| LIGHT |
light alert |
Methods
Adds a session alert message.
Removes CURRENT_USER_SESSION_NAME from the $_SESSION superglobal array when a user logs out of a user session.
Displays messages related to actions a user may perform.
Checks if a session by user name exists.
Getter function that returns the $_SESSION superglobal associative array.
Sets a value in the $_SESSION superglobal array.
Don't store browser version numbers so we don't break session during end user software updates.
Details
at line 38
static void
addMessage(string $type, string $message)
Adds a session alert message.
at line 59
static void
delete(string $name)
Removes CURRENT_USER_SESSION_NAME from the $_SESSION superglobal array when a user logs out of a user session.
at line 71
static string
displayMessage()
Displays messages related to actions a user may perform.
at line 93
static bool
exists(string $name)
Checks if a session by user name exists.
at line 106
static mixed
get(string $name)
Getter function that returns the $_SESSION superglobal associative array.
at line 117
static mixed
set(string $name, mixed $value)
Sets a value in the $_SESSION superglobal array.
at line 127
static string
uagent_no_version()
Don't store browser version numbers so we don't break session during end user software updates.