Re: Please help: Forms authentication & new session -> does not return to the specified page after login

From: mortb (
Date: 12/03/04

Date: Fri, 3 Dec 2004 09:12:23 +0100

That is the function that I use - but sometimes (perhaps when the login
starts a new session?) I just get redirected to the default page of my
application (/appName/default.aspx) and not the page which was requested
before login.

"Deepak Ramakumar" <> wrote in message
> You can use FormsAuthentication.GetRedirectUrl(username, persistantcookie)
> API to get the url of the page to be redirected to after successful logon.
> "mortb" <mortb1<noospam<> wrote in message
> news:eu6QjP71EHA.2192@TK2MSFTNGP14.phx.gbl...
>> If the user is not logged in and no session is present for the user when
>> requesting a specific page
>> it seems that the returnurl querystring prarmeter is not set so the page
>> does not redirect to the right page after login.
>> I would like to know if there is anything I can do so that the page
>> redirect correctly -- any help appreciated!
>> cheers,
>> mortb