How do I change the logged in user to another?
Posted
by TruMan1
on Stack Overflow
See other posts from Stack Overflow
or by TruMan1
Published on 2010-04-02T15:46:26Z
Indexed on
2010/04/02
15:53 UTC
Read the original article
Hit count: 399
I would like to change the logged in user to another user temporarily to do some process.
For example, say I am logged in as "Joe". In my method, I want to make the logged in user from "Joe" to "SuperUser", do some process, then change the logged in user back to "Joe". Can someone help with this?
© Stack Overflow or respective owner