Process Handler in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarvesh48
    New Member
    • Jan 2009
    • 1

    Process Handler in C#

    I have a Application which Session Expire in 30 minutes. How can i stop Session Expire of Application ?
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Originally posted by sarvesh48
    I have a Application which Session Expire in 30 minutes. How can i stop Session Expire of Application ?
    If you're talking about web applications... .

    then sessions don't expire in minutes or seconds....
    Session expires when the browser is closed....

    i think there's a bit of confusion..... could you repeat the question in detail

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      The default Session timeout is 20minutes, you can adjust as required.
      Sessions (on the server side) do NOT expire when the browser is closed.
      The browser loses track of the Session id string(long unique ID string), but the session is still active.
      There are settings for you ASP.NET webpage or the service as a whole. It may be possible to adjust the value in the web.config file, but I've only done it though the IIS administration tool.

      Side note: Simply doing -anything- on the website will extend the timeout. So everytime the user requests a page from the server, the timeout is reset back to 30mins.
      One solution is to have a very SHORT session timeout, and then have each of your pages send a background "heartbeat" request. If the user closes the window, the heartbeats don't happen and the session will expire very quickly.

      Comment

      Working...