<p>When I get AuthenticationStatus.Authenticated (DotNetOpenId library)
response from myopenid provider, i'd like to redirect user from login page
to another one using MVC Redirect(myurl). But unfortunately, instead of
getting to myurl, user is redirected to empty page:</p>

<p>myurl?token=AWSe9PSLwx0RnymcW0q.... (+ several kilobytes of
myopenid-specific query string)</p>

<p>I also tried FormsAuthentication.RedirectFromLoginPage(), but it redirects
to original login page again instead of the myurl.</p>

<p>Could anybody suggest proper redirection to myurl?</p>

<p>Thanks</p>

First of all you should set authorization cookie:
```
```
FormsAuth.SetAuthCookie(UserName, RememberMe);
```
```
After this you should return RedirectToAction result:
```
```
return RedirectToAction(actionName, controllerName);
```
```
Or Redirect result:
```
```
return Redirect(url);
```
```
When you use "return Redirect(url);" it uses Response.Redirect(url, false) method for redirecting so it must work. May be you not returning this action result, please check this.
"FormsAuthentication.RedirectFromLoginPage()" will redirect to login page when you didn't set authorization cookie or when your login page is a home (default) page of the application -
The RedirectFromLoginPage method redirects to the URL specified in the query string using the ReturnURL variable name. For example, in the URL
http://www.contoso.com/login.aspx?ReturnUrl=caller.aspx
, the RedirectFromLoginPage method redirects tothe return URL caller.aspx. If the ReturnURL variable does not exist, the RedirectFromLoginPage method redirects to the URL in the DefaultUrl property.
Via MSDN