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