thinkinterview » interview questions
« Previous

interview Questions

next »
question

You company gives you a task to secure existing ASP.NET Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be redirect to the page that they originally requested.

Which should you use?
  • 1. In the Web.config file: <authorization> <deny users=”?”/></authorization> On each page in the Web site: void Page_Load(Object sender, EventArgs E){ FormsAuthentication.Initialize();
  • 2. On each page in the Web site: void Page_Load(Object sender, EventArgs E){ FormsAuthentication.RedirectToLoginPage(“login.aspx”);
  • 3. On each page in the Web site: void Page_Load(Object sender, EventArgs E){ Response.Redirect(“login.aspx”);//Rest of the Page_Load code goes here}
  • 4. In the Web.config file: <authentication mode=”Forms”> <forms name=”.ASPXUSERDEMO” loginUrl=”login.aspx” protection=”All”timeout=”60” /> </authentication>

Next Queston » You are using the ASP.NET membership APIs to manage user accounts...
You are using the ASP.NET membership APIs to manage user accounts for your ASP.NET Web site. The Web.config file of your web s... View full queston »

Posted in: ASP.NET(45) |