Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 516.6k

RedirectToLoginPage

Aug 20 2024 3:59 PM

Hi

  In below line where RedirectToLoginPage(); is to defined. Do we need to give in Web.Config

FormsAuthentication.RedirectToLoginPage(); 



<authentication mode="Forms">
      <!--<forms defaultUrl="~/Home.aspx" loginUrl="~/Login.aspx" slidingExpiration="true" timeout="2880"></forms>-->
      <forms name="frmPayroll" loginUrl="Login.aspx" timeout="60" slidingExpiration="true" />
    </authentication>

Thanks


Answers (1)