Home All Groups Group Topic Archive Search About

Forms Authentication Redirect URL

Author
15 Oct 2005 9:36 PM
porko
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

Author
15 Oct 2005 9:56 PM
Karl Seguin
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

Show quoteHide quote
"porko" <po***@discussions.microsoft.com> wrote in message
news:EE653E8C-328F-4E99-9DD5-67A1F6CA60AB@microsoft.com...
>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
Are all your drivers up to date? click for free checkup

Author
15 Oct 2005 10:18 PM
porko
Yes -  That seems to do the trick.

Thanks!

Show quoteHide quote
"Karl Seguin" wrote:

> 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
>
> --
> -->
> MY ASP.Net tutorials
> http://www.openmymind.net/
> http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!
> "porko" <po***@discussions.microsoft.com> wrote in message
> news:EE653E8C-328F-4E99-9DD5-67A1F6CA60AB@microsoft.com...
> >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
>
>
>

Bookmark and Share

Post Thread options