Method |
Description |
|
__construct ( Symfony\Component\HttpFoundation\Session\SessionInterface $storage ) |
Constructor |
|
get ( string $name, mixed $default = null ) : mixed |
Get an attribute of the session |
|
getId ( ) : string |
Get the session ID |
|
getIgnoreAccess ( ) : boolean |
Get current ignore access setting. |
|
getLoggedInUser ( ) : ElggUser | null |
Gets the logged in user |
|
getLoggedInUserGuid ( ) : integer |
Return the current logged in user by guid. |
|
getMock ( ) : self |
Get an isolated ElggSession that does not persist between requests |
|
getName ( ) : string |
Get the session name |
|
has ( string $name ) : boolean |
Has the attribute been defined |
|
invalidate ( ) : boolean |
Invalidates the session |
|
isAdminLoggedIn ( ) : boolean |
Returns whether or not the viewer is currently logged in and an admin user. |
|
isLoggedIn ( ) : boolean |
Returns whether or not the user is currently logged in |
|
isStarted ( ) : boolean |
Has the session been started |
|
migrate ( boolean $destroy = false ) : boolean |
Migrates the session to a new session id while maintaining session attributes |
|
remove ( string $name ) : mixed |
Remove an attribute |
|
removeLoggedInUser ( ) : void |
Remove the logged in user |
|
set ( string $name, mixed $value ) : void |
Set an attribute |
|
setId ( string $id ) : void |
Set the session ID |
|
setIgnoreAccess ( boolean $ignore = true ) : boolean |
Set ignore access. |
|
setLoggedInUser ( ElggUser $user ) : void |
Sets the logged in user |
|
setName ( string $name ) : void |
Set the session name |
|
start ( ) : boolean |
Start the session |
|