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. I have problems with Session Time-out

I have problems with Session Time-out

Scheduled Pinned Locked Moved ASP.NET
windows-adminhelptutorialquestionworkspace
3 Posts 3 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
    satyendrastomar
    wrote on last edited by
    #1

    Hi, I have problems with Session Time-out. I need my Session to stay for more than an hour. For that, I have done the below things. a) I have specified the timeout as 60 in the web.config of my application as below: b) In IIS, web-site's configuration settings also I have changed to 60 minutes. c) Though its not required, I have also changed the timeout to 60 in machine.config as below: Even though some times the session time-out is after 25 – 30 minutes and sometimes the session time-out was after more than 54 minutes. Can any one give me any explanation for this unpredictable behaviour? How to re-solve this type of situation. I dont want to change the sessionstate's mode other than In-proc. Please help me in this regard.

    Satyendra

    L A 2 Replies Last reply
    0
    • S satyendrastomar

      Hi, I have problems with Session Time-out. I need my Session to stay for more than an hour. For that, I have done the below things. a) I have specified the timeout as 60 in the web.config of my application as below: b) In IIS, web-site's configuration settings also I have changed to 60 minutes. c) Though its not required, I have also changed the timeout to 60 in machine.config as below: Even though some times the session time-out is after 25 – 30 minutes and sometimes the session time-out was after more than 54 minutes. Can any one give me any explanation for this unpredictable behaviour? How to re-solve this type of situation. I dont want to change the sessionstate's mode other than In-proc. Please help me in this regard.

      Satyendra

      L Offline
      L Offline
      l0kke
      wrote on last edited by
      #2

      Aren't you setting Session.Timeout property in your code somewhere? I think, when you call such an assignement, it results in lost of current session. And you can lose your session when IIS or web application process is restarted. Pilo

      1 Reply Last reply
      0
      • S satyendrastomar

        Hi, I have problems with Session Time-out. I need my Session to stay for more than an hour. For that, I have done the below things. a) I have specified the timeout as 60 in the web.config of my application as below: b) In IIS, web-site's configuration settings also I have changed to 60 minutes. c) Though its not required, I have also changed the timeout to 60 in machine.config as below: Even though some times the session time-out is after 25 – 30 minutes and sometimes the session time-out was after more than 54 minutes. Can any one give me any explanation for this unpredictable behaviour? How to re-solve this type of situation. I dont want to change the sessionstate's mode other than In-proc. Please help me in this regard.

        Satyendra

        A Offline
        A Offline
        AmitChampaneri
        wrote on last edited by
        #3

        You can set session time out in web.config file where you are defining connection string.

        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