I'm using forms authentication to authenticate a user and then redirect the user to welcome page, which is Welcome.aspx. When the user credentials are valid, then the user will be redirected to Welcome.aspx page.
I am using FormsAuthentication.RedirectFromLoginPage() method to redirect the user to the welcome page, but for some reason the FormsAuthentication.RedirectFromLoginPage() method is redirecting the user to Default.aspx.
Web.Config Code:
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="2880" defaultUrl="~/Welcome.aspx"/>
</authentication>