How should a module change the value of the global $user
, execute its own code, and restore the original value of $user
without causing the current user to be logged out if an error happens?
↧
Programmatically impersonating another user without causing the currently logged-in user to log out
↧