Hello,
I wrote a custom implementation of IHttpModule for doing a Basic authentification. The authentication information comes from a database, so the credentials will be compared with username and passwords which are stored in a table. So far so good, everything works.
Because at Basic authentification, every http request will end in a authenticate request, I want to store a id of each logged in user in a Session. So I can reduce the backend database calls because I would only need one real call to the database. Further authenticate requests could be lookup in the Session.
But I do only have Session access if the event PostAcquireRequestState is fired. The first event which is fired is the AuthenticateRequest event. To reduce the database calls, I need access to the Session in the AuthenticateRequest . Do you have any idea how to solve this problem?
Thanks, TMK
I wrote a custom implementation of IHttpModule for doing a Basic authentification. The authentication information comes from a database, so the credentials will be compared with username and passwords which are stored in a table. So far so good, everything works.
Because at Basic authentification, every http request will end in a authenticate request, I want to store a id of each logged in user in a Session. So I can reduce the backend database calls because I would only need one real call to the database. Further authenticate requests could be lookup in the Session.
But I do only have Session access if the event PostAcquireRequestState is fired. The first event which is fired is the AuthenticateRequest event. To reduce the database calls, I need access to the Session in the AuthenticateRequest . Do you have any idea how to solve this problem?
Thanks, TMK