I was recently given an older ASP web application to maintain. I haven’t touched it much, from what I understand, the actual VB6 project files are gone, so I only have the ASP files themselves to work with. Recently, users began complaining of being logged off, sometimes after a minute or less. I tried myself, and logged in once, clicked another link which checks authentication before showing page content, but had to log in again before going back to the page and having it show the content. This behavior seems to have just popped up, as no one has touched it, and it hasn’t shown this type of behavior before. Any suggestions on where to begin? Thanks.
Share
As there are many ways to store user session, it’s hard to tell what’s happening here without more information.
If users are being logged off ‘randomly’ that suggests to me that you are using the Session object to store authentication information. One of the following may be happening:
IIS is recycling (restarting) your application. This blows away your Session objects. More info: http://msdn.microsoft.com/en-us/library/ms525803.aspx
This is somewhat basic, but are you using more than one web server in some kind of load-balancing configuration? The session object is machine-specific.
Another possibility. This would apply even if you are not using the Session object. I have seen this happen many times.