FormsAuthentication.GetRedirectUrl issue
<p>i have specified that default url in my web.config like</p>

<pre><code>&lt;authentication mode="Forms"&gt;
  &lt;forms name="AuthCookie" loginUrl="login.aspx" timeout="30" protection="None" defaultUrl="Private/Default.aspx"&gt;&lt;/forms&gt;
&lt;/authentication&gt;

public void Login()
    {
        FormsAuthentication.SetAuthCookie(UserID, IsPersistent);
        Response.Redirect(FormsAuthentication.GetRedirectUrl(UserID, IsPersistent));
    }
</code></pre>

<p>it means that after successful login user will redirect to Private/Default.aspx if no return url query string is there in address bar.</p>

<p>actually result should look like that if user come from a page then user should redirected to that page after login but in my case alway user redirect to Private/Default.aspx if user come from cart/mycart.aspx. it is wrong. so please tell me what should i do....please help me to fix this issue. thanks</p>
