Elgg  Version master
Variables
login_as.php File Reference

Go to the source code of this file.

Variables

 $user_guid = (int) get_input('user_guid')
 
 $user = get_user($user_guid)
 
if(!$user instanceof\ElggUser) $original_user = elgg_get_logged_in_user_entity()
 
 $original_user_guid = $original_user->guid
 
 $persistent = false
 
if(isset($_COOKIE['elggperm'])) $session = elgg_get_session()
 
 try
 

Variable Documentation

if (!$user instanceof\ElggUser) $original_user = elgg_get_logged_in_user_entity()

Definition at line 17 of file login_as.php.

$original_user_guid = $original_user->guid

Definition at line 18 of file login_as.php.

$persistent = false

Definition at line 21 of file login_as.php.

if (isset($_COOKIE['elggperm'])) $session = elgg_get_session()

Definition at line 29 of file login_as.php.

$user = get_user($user_guid)

Definition at line 12 of file login_as.php.

$user_guid = (int) get_input('user_guid')

Definition at line 10 of file login_as.php.

try
Initial value:
{
$user
Definition: login_as.php:12
elgg_login(\ElggUser $user, bool $persistent=false)
Log in a user.
Definition: sessions.php:81

Definition at line 33 of file login_as.php.