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. Losing a session variable

Losing a session variable

Scheduled Pinned Locked Moved Web Development
helpquestion
7 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.
  • A Offline
    A Offline
    Abbas82
    wrote on last edited by
    #1

    Hi, Currently there is a web user that always gets an error on our application due to a missing session variable. All other session variables are still in tact, but this one seems to disappear and hence the user can no longer access everything on the site. Any ideas as to where this value goes? I've checked my ASP code and saw nothing that would re-set this variable's value. Moreover, only a couple of users experience this problem Any input would be much appreciated.

    A G 2 Replies Last reply
    0
    • A Abbas82

      Hi, Currently there is a web user that always gets an error on our application due to a missing session variable. All other session variables are still in tact, but this one seems to disappear and hence the user can no longer access everything on the site. Any ideas as to where this value goes? I've checked my ASP code and saw nothing that would re-set this variable's value. Moreover, only a couple of users experience this problem Any input would be much appreciated.

      A Offline
      A Offline
      Abbas82
      wrote on last edited by
      #2

      Could a browser specific setting cause this? I've tried impersonating the user on the production site, and even though I am limited to what I can do (since I am not the user himself), I still havent been able to reporoduce the problem.

      G P 2 Replies Last reply
      0
      • A Abbas82

        Could a browser specific setting cause this? I've tried impersonating the user on the production site, and even though I am limited to what I can do (since I am not the user himself), I still havent been able to reporoduce the problem.

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

        Abbas82 wrote:

        Could a browser specific setting cause this?

        Not directly. The session variables are stored in the Session object on the server, and is totally independent of the browser. The only possibility that a browser setting could cause this is indirectly, i.e. that there is some code in your application that removes the session variable depending on some value from the browser.

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

        1 Reply Last reply
        0
        • A Abbas82

          Could a browser specific setting cause this? I've tried impersonating the user on the production site, and even though I am limited to what I can do (since I am not the user himself), I still havent been able to reporoduce the problem.

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          We've had problems with pages losing session variables where there was an underscore in the domain name. You could also check to see if the user permits cookies on their machine, as the session uses these when identifying the client.

          G 1 Reply Last reply
          0
          • A Abbas82

            Hi, Currently there is a web user that always gets an error on our application due to a missing session variable. All other session variables are still in tact, but this one seems to disappear and hence the user can no longer access everything on the site. Any ideas as to where this value goes? I've checked my ASP code and saw nothing that would re-set this variable's value. Moreover, only a couple of users experience this problem Any input would be much appreciated.

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

            Is the session variable missing, or just it's value? A session variable just doesn't disappear. Either it was not created in the first place, or you have code that removes it.

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

            A 1 Reply Last reply
            0
            • P Paddy Boyd

              We've had problems with pages losing session variables where there was an underscore in the domain name. You could also check to see if the user permits cookies on their machine, as the session uses these when identifying the client.

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

              But in that case you lose the entire Session object, not individual session variables.

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

              1 Reply Last reply
              0
              • G Guffa

                Is the session variable missing, or just it's value? A session variable just doesn't disappear. Either it was not created in the first place, or you have code that removes it.

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

                A Offline
                A Offline
                Abbas82
                wrote on last edited by
                #7

                You're right, if it was a cookie issue, then there would be no session vars. at all, plus I get the HTTP cookie in my error email when an error is encountered. There is no underscore in the domain name either. Well, this is my code to send me an email regarding whats going on when an error occurs For Each item in Session.Contents CaptureSessionValues = CaptureSessionValues & "" & item & "" &_ Server.HTMLEncode(Session.Contents(item)) & "" & vbcrlf Next And the variable in question, named Home_Page (along with a few others that get set on the same page, home.asp) are not there, so I guess it never gets created? I checked my code and I dont see anything that removes it.

                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