Class Session
Manages the $_SESSION global with getters, setters and destructors.
public static
mixed
|
|
public static
mixed
|
|
public static
mixed
|
#
getExt( string $key, string $subKey )
Gets $_SESSION[$key][$subKey] if exists, $_SESSION[$key] otherwise or NULL. Do not use directly. |
public static
null
|
#
clean( string $key = NULL )
Cleans a session parameter if $key is specified, or cleans the whole $_SESSION otherwise. Do not use directly. |
public static
boolean
|
|
public static
boolean
|
|
public static
mixed
|
#
isAuthenticated( )
Returns whether the user is authenticated or not. If it is, returns its role (__ROLE_<role>__) |
public static
mixed
|
#
__callStatic( string $methodName, mixed $args )
Manages all getters, setters and destroyers for Session. Use getFoo(), getFoo('bar') or cleanFoo(). See example for more details and how to use. |
protected static
|
$roleUser
|
#
__ROLE_USER__
|
protected static
|
$roleAdmin
|
#
__ROLE_ADMIN__
|
protected static
|
$roleSudo
|
#
__ROLE_SUDO__
|