Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Retain value in HttpModule

Retain value in HttpModule

Scheduled Pinned Locked Moved ASP.NET
businessquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arisaravanan
    wrote on last edited by
    #1

    I've written custom httpmodule and it's being called up for every request. I want to store the value on my first request and this value needs to be retrieved for subsequent request. Is this possible in HttpModule? I know HttpContext.Current.Items preserve the value only for single request and we cannot use Session in our project as per our requirements. DO we have any other option apart from session\HttpContext.Current.Items for storing values in HttpModule?

    F V 2 Replies Last reply
    0
    • A arisaravanan

      I've written custom httpmodule and it's being called up for every request. I want to store the value on my first request and this value needs to be retrieved for subsequent request. Is this possible in HttpModule? I know HttpContext.Current.Items preserve the value only for single request and we cannot use Session in our project as per our requirements. DO we have any other option apart from session\HttpContext.Current.Items for storing values in HttpModule?

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      You'll need to store the data in a cookie.

      1 Reply Last reply
      0
      • A arisaravanan

        I've written custom httpmodule and it's being called up for every request. I want to store the value on my first request and this value needs to be retrieved for subsequent request. Is this possible in HttpModule? I know HttpContext.Current.Items preserve the value only for single request and we cannot use Session in our project as per our requirements. DO we have any other option apart from session\HttpContext.Current.Items for storing values in HttpModule?

        V Offline
        V Offline
        Venkatesh Mookkan
        wrote on last edited by
        #3

        Have you tried using Cache? You can use built-in Cache or use third party Caching System

        Venkatesh Mookkan (My Recent Article: WPF Custom Control - FilterControl for ListBox/ListView)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups