Application_BeginRequest event and user info

liunx

Guest
I'm really frustrated, I want to populate some objects which contain user specific information in the Context.Items and I want to populate them very early in the request pipline. It doesn't look possible to me to gain access to user specific information in the Application_BeginRequest. Anyone else fighting this?Well, if you application is impersonating a user, then why couldn't you just grab all the info you are looking for when the user enters your apps startpage? And why store it into a custom object when you have HttpContext at your disposal?

Also, I think you should consider using Session_Start or Application_AuthenticateRequest rather than Applicaiton_Start. Application_Start occurs when the first user connects to your app, subsequent user connections will not cause the application_start event. However, the Session_Start event occurs for each and every user connection.
 
Back
Top