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. session variables vanish

session variables vanish

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-adminhelp
6 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.
  • K Offline
    K Offline
    klawipo
    wrote on last edited by
    #1

    Hello folks, I have a problem using ASP.NET 2.0 on IIS 6. I use a self made login routine using session variables. An object is stored in Session["user"] for this purpose. While on a test system everything works fine, on the real server the session variable disapears. This can happen within seconds or a few minutes while clicking around on the web site. Can't say anything more spcific. Does anyone know what can cause this problem? Perhaps wrong server settings? If so, which? Thx Klaus

    E G 2 Replies Last reply
    0
    • K klawipo

      Hello folks, I have a problem using ASP.NET 2.0 on IIS 6. I use a self made login routine using session variables. An object is stored in Session["user"] for this purpose. While on a test system everything works fine, on the real server the session variable disapears. This can happen within seconds or a few minutes while clicking around on the web site. Can't say anything more spcific. Does anyone know what can cause this problem? Perhaps wrong server settings? If so, which? Thx Klaus

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      Is it on a farm?

      K 1 Reply Last reply
      0
      • E ednrgc

        Is it on a farm?

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

        Nope, definitely not. It's a proper server (Not just web hosting or something like that). Any Ideas nonetheless? Why do you ask, did you experience similar problems? One difference between test and productivity server exists. On the "real" server there is a http-auth based password check. Thx for any help Klaus

        E 1 Reply Last reply
        0
        • K klawipo

          Hello folks, I have a problem using ASP.NET 2.0 on IIS 6. I use a self made login routine using session variables. An object is stored in Session["user"] for this purpose. While on a test system everything works fine, on the real server the session variable disapears. This can happen within seconds or a few minutes while clicking around on the web site. Can't say anything more spcific. Does anyone know what can cause this problem? Perhaps wrong server settings? If so, which? Thx Klaus

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

          Session variables does not disappear from a session by themselves. Write out the Session.SessionID value somewhere so that you can see if your session ends and you get a new one. If you don't get a new session, there is most likely something in your code that removes the session variables.

          --- Year happy = new Year(2007);

          K 1 Reply Last reply
          0
          • G Guffa

            Session variables does not disappear from a session by themselves. Write out the Session.SessionID value somewhere so that you can see if your session ends and you get a new one. If you don't get a new session, there is most likely something in your code that removes the session variables.

            --- Year happy = new Year(2007);

            K Offline
            K Offline
            klawipo
            wrote on last edited by
            #5

            4 All who may have the same problem in the future: The problem is fixed! The number of worker processes had been increased to 12 by our administrator. Resetting this value to 1 solves the problem. Thx Klaus

            1 Reply Last reply
            0
            • K klawipo

              Nope, definitely not. It's a proper server (Not just web hosting or something like that). Any Ideas nonetheless? Why do you ask, did you experience similar problems? One difference between test and productivity server exists. On the "real" server there is a http-auth based password check. Thx for any help Klaus

              E Offline
              E Offline
              ednrgc
              wrote on last edited by
              #6

              The reason I asked was that you have to change the StateServer with web farms.

              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