Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6732413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:38:52+00:00 2026-05-26T10:38:52+00:00

I have a httpmodule set up in my asp.net web application, iis7, .net 4.0

  • 0

I have a httpmodule set up in my asp.net web application, iis7, .net 4.0 etc. I have 2 issues I would like to resolve.

From debugging of the httpmodule, I have found that the module gets called for ScriptResource.axd ie. it runs when this is called. Is there any way I can prevent this or “turn it off”? I want to have the module run for some of my httphandlers, .asmx services and aspx page requests but dont want the overhead of being called for scriptresource handlers.

Secondling, is session state available in HttpModules and if so, what events is it available at?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:38:53+00:00Added an answer on May 26, 2026 at 10:38 am

    As already mentioned, HttpModules are enabled for all requests in an application so the only thing you can do is to inspect the incoming url in the HttpModule and then decide what action to take based on that.

    Session state is loaded during the AcquireRequestState event so the earliest opportunity to inspect it from a HttpModule is the PostAcquireRequestState event. Session state is persisted at the point that the ReleaseRequestState event is raised, so any changes you make to the session should be made before that point. You can therefore access session state at any point during the HttpApplication pipeline between those two events

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP .NET Web Forms application that makes use of the 'WebMethod'
I have an HttpModule which is used to dynamically compress content from an ASP.NET
i have a problem in asp.net web-application. I'm using UrlRewritingNet.UrlRewrite and it's works fine
I have a custom HttpModule rewrite engine in an existing web application project that
I have an ASP.NET HttpModule that handles HttpApplication.BeginRequest to redirect some requests to other
I have two web applications in ASP.NET which are quite the same (same business
I have a class which inherits from the System.Web.UI.Page class, like mysystem . When
I have an ASP.net 1.1 application. In a sub-folder, I've installed blogengine.net, which is
We have multiple Http Modules in our ASP.NET application. The modules are processing request
Possible Duplicate: Can I access session state from an HTTPModule? I have set up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.