Tuesday, January 5, 2016

Avoid Redirect to Account/Login?ReturnUrl=%2f

Hello Guys,

If your using form authentication then you may face redirection issue on your home page of website.

If you have a login button on home page and if you want to authenticate user only after click on login button.

So for this you need to follow below steps.

In web.config file add below key AppSetting.

<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>


Second case.

 you have to Assign Default page in route table.


No comments:

Post a Comment

Featured Post