0

For example i'm redirecting users to login.aspx for authentication but i want to redirect some pages to another-login.aspx is it possible?
If it is possible how can i do?
I can do it by using some codes on that pages load event but i want to know if its possible with normal authentication rules.

1
  • Your question isn't clear! What is exactly you want? Commented Nov 13, 2011 at 0:14

2 Answers 2

1

I could be wrong, but I don't see how this could be possible. The authentication just checks if a user is able to view a page, unless of course you had a redirect from the authentication when it failed to a different page (another-login.aspx). That is the only way that I think you could do this, but you would still be hitting the initial page (login.aspx) to check if the end user had the authority to view that page. So, I don't see the benefit in doing it this way as it would still be hitting your initial page.

Sign up to request clarification or add additional context in comments.

Comments

1

The easy way I think you can achieve this is to have redirect code on your Page_Load for your main login.

Something like:

 protected void Page_Load(object sender, EventArgs e) 
 { 
     if (codition1) 
      { 
            Response.Redirect(@"\Login1.aspx"); 
      } 
     else if(condition2) 
     { 
      Response.Redirect(@"\Login2.aspx"); 
      } 
 }

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.