IHTTPModule and Session Access

TMK

Joined
Nov 12, 2008
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top