DefaultSession Class Reference
Detailed Description
DefaultSession uses the default PHP session implementation:
- server side storage
- session id sent as a cookie to the client
Definition at line 26 of file DefaultSession.php.
Inheritance diagram for DefaultSession:
Public Member Functions | |
__construct (Configuration $configuration) | |
__destruct () | |
isStarted () | |
getID () | |
get ($key, $default=null) | |
set ($key, $value) | |
remove ($key) | |
exist ($key) | |
clear () | |
destroy () | |
setAuthUser ($login) | |
getAuthUser () | |
Public Attributes | |
const | AUTH_USER_NAME = 'auth_user' |
Protected Member Functions | |
getCookiePrefix () | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | Configuration | $configuration | ) |
Constructor.
- Parameters
-
$configuration
Reimplemented in AuthTokenSession.
Definition at line 36 of file DefaultSession.php.
◆ __destruct()
__destruct | ( | ) |
Definition at line 58 of file DefaultSession.php.
Member Function Documentation
◆ isStarted()
isStarted | ( | ) |
◆ getID()
getID | ( | ) |
◆ get()
get | ( | $key, | |
$default = null |
|||
) |
◆ set()
set | ( | $key, | |
$value | |||
) |
◆ remove()
remove | ( | $key | ) |
◆ exist()
exist | ( | $key | ) |
◆ clear()
clear | ( | ) |
◆ destroy()
destroy | ( | ) |
◆ setAuthUser()
setAuthUser | ( | $login | ) |
- See also
- Session::setAuthUser()
Implements Session.
Reimplemented in AuthTokenSession.
Definition at line 133 of file DefaultSession.php.
◆ getAuthUser()
getAuthUser | ( | ) |
- See also
- Session::getAuthUser()
Implements Session.
Reimplemented in AuthTokenSession.
Definition at line 144 of file DefaultSession.php.
◆ getCookiePrefix()
|
protected |
Member Data Documentation
◆ AUTH_USER_NAME
const AUTH_USER_NAME = 'auth_user' |
Definition at line 28 of file DefaultSession.php.