Tech Off Thread

1 post

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

HttpModule and FormsAuthentication

Back to Forum: Tech Off
  • User profile image

    I made an HttpModule in that captures all requests and sends xml as a response. So far everything works fine except the authentication bit.
    When a protected page is requested I check with httpcontext.current.request.isauthenticated, if false redirect the user to a login form, receive the name and password, validate and then I set the formsauthentication.setauthcookie(...).

    The problem is that the IsAuthenticated function always returns false.

    I tried capturing all possible events: BeginRequest, AuthenticateRequest, PostAuthenticateRequest. Never do I get IsAuthenticated = true.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.