Re: Question about redirecting a user after authentication

From: Simon Harvey (simon.harvey_at_the-web-works.co.uk)
Date: 02/18/04


Date: Wed, 18 Feb 2004 11:49:44 -0000


"Fluker" <flu@youidiot.org> wrote in message
news:edYbP4g9DHA.2472@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> RedirectFromLoginPage() works just fine. If you redirect to login
> page manually, make sure that a querystring "ReturnURL" is appended to
> URL with value of ApplicationPath + "/" + "yourpage.aspx", and this value
> is server encoded. Once login is validated it will automatically redirect
> user
> to page in that querystring. If returnURL is absent then
> RedirectFromLoginPage
> redirects to "default.aspx" in base directory.
>
> Hope this helps,
>
> FLU.
>

Hi Mr Flu,

Thanks for your help. It was that last line in your reply that I was
needing!

Thanks
Simon



Relevant Pages

  • Forms Authentication without Login Page
    ... using RedirectFromLoginPage()? ... My reason for asking is that I'm trying to use Forms Authentication to allow ... the MS examples show using a Login page that users are redirected to if they ... explicitly log the user in but without redirecting to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RedirectFromLoginPage
    ... if the ReturnURL parameter is blank when the RedirectFromLoginPage method is ... Depending upon the login status the login button performs either a login or ... Sub Page_Load ...
    (microsoft.public.dotnet.framework.aspnet)
  • RedirectFromLoginPage
    ... if the ReturnURL parameter is blank when the RedirectFromLoginPage method is ... Depending upon the login status the login button performs either a login or ... Sub Page_Load ...
    (microsoft.public.dotnet.security)
  • Re: NEWBIE-"RedirectFromLoginPage"
    ... The method RedirectFromLoginPage() redirects to default.aspx. ... > Trying to make a login page to a website. ... > Requested Url: /mmgims/default.aspx ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Question about redirecting a user after authentication
    ... RedirectFromLoginPage() works just fine. ... make sure that a querystring "ReturnURL" is appended to ... Once login is validated it will automatically redirect ... If returnURL is absent then ...
    (microsoft.public.dotnet.framework.aspnet)