Page 1 of 1

Login Redirect?

Posted: Thu Jul 09, 2015 11:40 am
by sweeperq
We had to update the location of our Login page. Is there a way to set the authentication provider to go to the new page? If not I'll through a redirect on the old one.

Re: Login Redirect?

Posted: Fri Jul 10, 2015 12:38 am
by nadeem
Yes, you can set the loginUrl in web.config file something like this

Locate

Code: Select all

<authentication mode="Forms">
      <forms timeout="90" slidingExpiration="true" name="ACGOLD.ASPXAUTH"/>
    </authentication>
and replace with

Code: Select all

<authentication mode="Forms">
      <forms timeout="90" slidingExpiration="true" loginUrl="~/DirectoryName/YourLoginPage.aspx" name="ACGOLD.ASPXAUTH"/>
    </authentication>