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. All sessions expire when system time changes. Why? How to solve it?

All sessions expire when system time changes. Why? How to solve it?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
5 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.
  • J Offline
    J Offline
    jahfer
    wrote on last edited by
    #1

    Hi, I have set a time-out value of 2 min. When the system time changes, all existing sessions get automatically expired. What will be the problem? How can we solve this? We cannot increase the time out value from 2 min. Session state mode is "InProc" (Not set anything in Web.Config. So it will be taking the default "InProc" mode. I assume so.) Thanks in advance for your help // Jahfer.

    V 1 Reply Last reply
    0
    • J jahfer

      Hi, I have set a time-out value of 2 min. When the system time changes, all existing sessions get automatically expired. What will be the problem? How can we solve this? We cannot increase the time out value from 2 min. Session state mode is "InProc" (Not set anything in Web.Config. So it will be taking the default "InProc" mode. I assume so.) Thanks in advance for your help // Jahfer.

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

      jahfer wrote:

      When the system time changes, all existing sessions get automatically expired.

      Who is changing the System Time? Are you taking about System Time or Server Time? Session is a server side cookie. The date change on the server will invalidate the session time and automatically reset the Session Object. If you are the one changing the server time then, don't do that. AFAIK, changing the local machine time will not affect the session object in the server.

      Castle Rider

      What if I freeze??? Don't forget to breath...

      My: Website | Yahoo Group | Blog Spot

      /xml>

      J 1 Reply Last reply
      0
      • V Venkatesh Mookkan

        jahfer wrote:

        When the system time changes, all existing sessions get automatically expired.

        Who is changing the System Time? Are you taking about System Time or Server Time? Session is a server side cookie. The date change on the server will invalidate the session time and automatically reset the Session Object. If you are the one changing the server time then, don't do that. AFAIK, changing the local machine time will not affect the session object in the server.

        Castle Rider

        What if I freeze??? Don't forget to breath...

        My: Website | Yahoo Group | Blog Spot

        /xml>

        J Offline
        J Offline
        jahfer
        wrote on last edited by
        #3

        Hi, Thank you for your reply. Web server machine administrator will change the time of web server machine. Is there any way to keep the session alive even if the web server machine time changed? // Jahfer.

        V A 2 Replies Last reply
        0
        • J jahfer

          Hi, Thank you for your reply. Web server machine administrator will change the time of web server machine. Is there any way to keep the session alive even if the web server machine time changed? // Jahfer.

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

          You cannot keep it alive no matter how much timeout you set. Tell me one thing, what do you store in the Session? May be I could give you a workaround? And why does the Administrator keeps changing the time in the Web Server?

          Castle Rider

          What if I freeze??? Don't forget to breath...

          My: Website | Yahoo Group | Blog Spot

          /xml>

          1 Reply Last reply
          0
          • J jahfer

            Hi, Thank you for your reply. Web server machine administrator will change the time of web server machine. Is there any way to keep the session alive even if the web server machine time changed? // Jahfer.

            A Offline
            A Offline
            Anurag Gandhi
            wrote on last edited by
            #5

            You could consider using Cache for such kind of issue.

            Anurag Gandhi.
            http://www.gandhisoft.com
            Life is a computer program and every one is the programmer of his own life.

            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