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. What is maximum Session Timeout Value in Web.config

What is maximum Session Timeout Value in Web.config

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 5 Posters 0 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.
  • S Offline
    S Offline
    swapnilbhavsar
    wrote on last edited by
    #1

    Hello I am developing an Web Applcation. What is the maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy. Swapnil Bhavsar

    S K V G 4 Replies Last reply
    0
    • S swapnilbhavsar

      Hello I am developing an Web Applcation. What is the maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy. Swapnil Bhavsar

      S Offline
      S Offline
      sulabh2020
      wrote on last edited by
      #2

      By default is 20 minutes and rest u can set it upto life time.

      Hello Forum Always be in touch to help about the topic ASP.NET

      1 Reply Last reply
      0
      • S swapnilbhavsar

        Hello I am developing an Web Applcation. What is the maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy. Swapnil Bhavsar

        K Offline
        K Offline
        kubben
        wrote on last edited by
        #3

        According to MS documentation: The Timeout property cannot be set to a value greater than 525,600 minutes (1 year). NOTE there is another thing you need to be concerned with. If you are running IIS 6.0 then you are also using an application pool. The application pool by default is set to recycle itself after like 27 hours. If the app pool is recycled you would lose all session information. Hope that helps. Ben

        1 Reply Last reply
        0
        • S swapnilbhavsar

          Hello I am developing an Web Applcation. What is the maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy. Swapnil Bhavsar

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          swapnilbhavsar wrote:

          Applcation

          Web Application

          swapnilbhavsar wrote:

          maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy

          That much high cost of memory and open idle sessions to remain.

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          1 Reply Last reply
          0
          • S swapnilbhavsar

            Hello I am developing an Web Applcation. What is the maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy. Swapnil Bhavsar

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            The maximum timeout for sessions is much larger than any sane person would use. The purpose of having a timeout on sessions, is that it removes the session objects from memory when they aren't used any more. If you have a very long timeout, you will have a lot of session objects in memory. Memory is cheap, but it's still a limited resource. If the server starts to run out of memory, it gets tremendously slow.

            --- single minded; short sighted; long gone;

            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