Session
class Session (View source)
The Session model class provides all methods related to a user session.
Methods
static
clearResetTokenHash()
Clears the reset token hash
static string
getResetTokenHash(string $username)
Return the reset token hash for a given user.
static string
getUsername()
Return the currently logged in user.
static bool
login(string $nameOrEmail, string $password)
Verify login information based on $_POST.
static bool
logout()
Log out user.
static
setResetTokenHash(string $username, string $tokenHash)
Set the reset token hash for a given user.
Details
at line 54
static
clearResetTokenHash()
Clears the reset token hash
at line 64
static string
getResetTokenHash(string $username)
Return the reset token hash for a given user.
at line 79
static string
getUsername()
Return the currently logged in user.
at line 94
static bool
login(string $nameOrEmail, string $password)
Verify login information based on $_POST.
at line 121
static bool
logout()
Log out user.
at line 138
static
setResetTokenHash(string $username, string $tokenHash)
Set the reset token hash for a given user.