N.542, N.912 Finalized the API UserRights::Impersonate. This is an enabler for several enhancements.

SVN:trunk[4837]
This commit is contained in:
Romain Quetiez
2017-07-18 09:36:25 +00:00
parent 54ca6ad3d9
commit 46b5293867
2 changed files with 54 additions and 12 deletions

View File

@@ -431,7 +431,7 @@ EOF
unset($_SESSION['auth_user']);
unset($_SESSION['login_mode']);
unset($_SESSION['archive_mode']);
unset($_SESSION['archive_allowed']);
unset($_SESSION['impersonate_user']);
UserRights::_ResetSessionCache();
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!