Lets Suppose that I have made a custom authentication module that inherits IHttpModule class.
Now the catch here is that how do I pass to this new module username and password which are in the form of textboxes placed on a page. For authentication module , I have never reaached to the stage where I can take user input from the login page and play with those variables in my authentication module.
To summarize, what I mean is I have not reached to a page which takes user input and then plays with it in authentication module. What I mean to ask is how do I reach to the login page and use the authentication module for authentication.
Hope I have made it clear. If not I can explain further.
Your module is checking if user is logged in or not. It doesn’t apply credentials to the current session. In order to do that, you should catch it on an event, for instance when login button is clicked you can fire an event which is located in your module and you can do whatever you want to do.