Elgg  Version master
Variables
logout_as.php File Reference

Go to the source code of this file.

Variables

 $session = elgg_get_session()
 
 $user_guid = (int) $session->get('login_as_original_user_guid')
 
 $user = get_user($user_guid)
 
if(!$user instanceof\ElggUser||!$user->isAdmin()) $persistent = (bool) $session->get('login_as_original_persistent')
 
 try
 

Variable Documentation

if (!$user instanceof\ElggUser||!$user->isAdmin()) $persistent = (bool) $session->get('login_as_original_persistent')

Definition at line 17 of file logout_as.php.

$session = elgg_get_session()

Definition at line 8 of file logout_as.php.

$user = get_user($user_guid)

Definition at line 12 of file logout_as.php.

$user_guid = (int) $session->get('login_as_original_user_guid')

Definition at line 10 of file logout_as.php.

try
Initial value:
{
$user
Definition: logout_as.php:12
elgg_login(\ElggUser $user, bool $persistent=false)
Log in a user.
Definition: sessions.php:81
if(!$user instanceof\ElggUser||!$user->isAdmin()) $persistent
Definition: logout_as.php:17

Definition at line 19 of file logout_as.php.