Forms Authentication Redirect URL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to be able to programmatically log a user in as a guest and redirect
them to a different page.

Is there any way to do a RedirectFromLoginPage() and explicity specify the
page to which the user will be redirected after the login?

-- p
 
RedirectFromLoginPage internally makes use of SetAuthCookie and a
Response.Redirect. You can simply make use of those two functions if you
need more granular control.

FormsAuthentication.SetAuthCookie(value, false);
Response.Redirect("whatever.aspx");

Karl
 
Back
Top