Elgg
Version 6.0
|
Go to the source code of this file.
Functions | |
elgg_get_session () | |
Gets Elgg's session object. More... | |
elgg_get_logged_in_user_entity () | |
Return the current logged in user, or null if no user is logged in. More... | |
elgg_get_logged_in_user_guid () | |
Return the current logged in user by guid. More... | |
elgg_is_logged_in () | |
Returns whether or not the user is currently logged in. More... | |
elgg_is_admin_logged_in () | |
Returns whether or not the viewer is currently logged in and an admin user. More... | |
elgg_set_cookie (\ElggCookie $cookie) | |
Set a cookie, but allow plugins to customize it first. More... | |
elgg_login (\ElggUser $user, bool $persistent=false) | |
Log in a user. More... | |
elgg_logout () | |
Log the current user out. More... | |
elgg_register_authentication_failure (\ElggUser $user) | |
Registers an authentication failure for a user. More... | |
elgg_reset_authentication_failures (\ElggUser $user) | |
Clears all authentication failures for a give user. More... | |
elgg_is_authentication_failure_limit_reached (\ElggUser $user, int $limit=null, int $lifetime=null) | |
Checks if the authentication failure limit has been reached. More... | |
elgg_get_login_forward_url (\ElggUser $user) | |
Determine which URL the user should be forwarded to upon successful login. More... | |
elgg_get_logged_in_user_entity | ( | ) |
Return the current logged in user, or null if no user is logged in.
Definition at line 24 of file sessions.php.
elgg_get_logged_in_user_guid | ( | ) |
Return the current logged in user by guid.
Definition at line 34 of file sessions.php.
elgg_get_login_forward_url | ( | \ElggUser | $user | ) |
Determine which URL the user should be forwarded to upon successful login.
\ElggUser | $user | Logged in user |
Definition at line 141 of file sessions.php.
elgg_get_session | ( | ) |
elgg_is_admin_logged_in | ( | ) |
Returns whether or not the viewer is currently logged in and an admin user.
Definition at line 52 of file sessions.php.
elgg_is_authentication_failure_limit_reached | ( | \ElggUser | $user, |
int | $limit = null , |
||
int | $lifetime = null |
||
) |
Checks if the authentication failure limit has been reached.
\ElggUser | $user | User to check the limit for |
int | $limit | (optional) number of allowed failures |
int | $lifetime | (optional) number of seconds before a failure is considered expired |
Definition at line 129 of file sessions.php.
elgg_is_logged_in | ( | ) |
Returns whether or not the user is currently logged in.
Definition at line 43 of file sessions.php.
elgg_login | ( | \ElggUser | $user, |
bool | $persistent = false |
||
) |
Log in a user.
Use elgg_pam_authenticate() to authenticate the user.
\ElggUser | $user | A valid Elgg user object |
boolean | $persistent | Should this be a persistent login? |
LoginException |
Definition at line 81 of file sessions.php.
elgg_logout | ( | ) |
elgg_register_authentication_failure | ( | \ElggUser | $user | ) |
Registers an authentication failure for a user.
\ElggUser | $user | user to log the failure for |
Definition at line 103 of file sessions.php.
elgg_reset_authentication_failures | ( | \ElggUser | $user | ) |
Clears all authentication failures for a give user.
\ElggUser | $user | user to clear the failures for |
Definition at line 115 of file sessions.php.
elgg_set_cookie | ( | \ElggCookie | $cookie | ) |
Set a cookie, but allow plugins to customize it first.
To customize all cookies, register for the 'init:cookie', 'all' event.
\ElggCookie | $cookie | The cookie that is being set |
Definition at line 65 of file sessions.php.