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

  • SEARCH
  • Home
  • 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 8885071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:13:09+00:00 2026-06-14T21:13:09+00:00

I need to check some stuff (Cookies) for each request coming to my application.

  • 0

I need to check some stuff (Cookies) for each request coming to my application.

In ASP.NET we’ve used HttpModule for this task , the question what should be used in MVC ? Some Global Filter , or I can Use HttpModuler as well, is there Any difference in Request PipeLine between MVC and regular ASP.NET ?

  • 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-06-14T21:13:11+00:00Added an answer on June 14, 2026 at 9:13 pm

    MVC is an abstraction over ASP.NET and therefore their “hooks” really depend at which level you want to inject your logic. An action filter will allow you to hook into MVC specific events:

    • OnActionExecuting – This method is called before a controller action is executed.
    • OnActionExecuted – This method is called after a controller action is executed.
    • OnResultExecuting – This method is called before a controller action result is executed.
    • OnResultExecuted – This method is called after a controller action result is executed.

    Whereas an HttpModule only allows you to hook into ASP.NET (upon which MVC is built) specific events:

    • BeginRequest – Request has been started. If you need to do something at the beginning of a request (for example, display advertisement banners at the top of each page), synchronize this event.
    • AuthenticateRequest – If you want to plug in your own custom authentication scheme (for example, look up a user against a database to validate the password), build a module that synchronizes this event and authenticates the user in a way that you want to.
    • AuthorizeRequest – This event is used internally to implement authorization mechanisms (for example, to store your access control lists (ACLs) in a database rather than in the file system). Although you can override this event, there are not many good reasons to do so.
    • PreRequestHandlerExecute – This event occurs before the HTTP handler is executed.
    • PostRequestHandlerExecute – This event occurs after the HTTP handler is executed.
    • EndRequest – Request has been completed. You may want to build a debugging module that gathers information throughout the request and then writes the information to the page.

    So it really depends on when you need to hook in your event and which events you need.

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

Sidebar

Related Questions

I need to write a rate limiter, that will perform some stuff each time
i wanna check out this thing called sproutcore , i need to install some
I have a weird need in an ASP.NET MVC 3 application which blocks my
I need to check some settings for all users on Windows clients in the
I need to check if some pictures (eps, tiff files) are in 300 DPI
I need to check in some fast way if there is any text nodes
For some reason I need to check in a couple of files in the
In some of my tests i need to check the order of Lists and
I need to check whether a string contains any swear words. Following some advice
I need to check for a condition on each page I visit on the

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.