ASP.NET SetAuthCookie weird behaviour
- by rlb.usa
Hello SO,
I'm trying to do user impersonation for a web application we have. The user selects the user they'd like to emulate/impersonate and then clicks the button which fires this:
protected void uxImpersonate_Click(object sender, EventArgs e)
{
...
FormsAuthentication.SetAuthCookie(uxUserToEmulate.SelectedValue, false);
…