locked
Reg:- HttpModule RRS feed

  • Question

  • User1474121861 posted

    Hi,

    I have written an HTTPMODULE to authenticate each request. If authentication fails i want to redirect to the ErrorPage.aspx.

    Which in turn calls HTTPMODULE and goes into a indefinite loop.

    1. How to bypass HTTPMODULE for certain aspx pages.

    2. How to authenticate and redirect to error page if authentication fails using HttpModule.

    Waiting for your answers.... tanks guys in advance

    mailme to :  arulsubscription@yahoo.co.in

     

    Wednesday, April 12, 2006 5:02 AM

All replies

  • User-94950375 posted

    I can think of 2 solutions.

     

    Use a cookie to track the user and then you can see if the request is for the error page.

    Don't use redirect, but Server.Transfer instead.

     

     

    Wednesday, April 12, 2006 4:31 PM