ASP Web Page User Display

I was recently provided with an older ASP web application for support. I haven't touched on this much, from what I understand, the actual VB6 project files are gone, so I only have ASP files to work with. Recently, users started complaining about being unloaded, sometimes in a minute or less. I tried it myself and logged in once by clicking another link that authenticates before showing the page content, but it had to log in again before returning to the page and showing it. This behavior seems to have just emerged as no one has touched it and it has not shown it before. Any suggestions on where to start? Thank.

0


source to share


5 answers


Since there are many ways to store a user's session, it's hard to tell what's going on here without additional information.

If users are logged off "accidentally", that tells me that you are using a Session object to store authentication information. One of the following may occur:

  • IIS recycles (restarts) your application. This removes the session objects. More information: http://msdn.microsoft.com/en-us/library/ms525803.aspx

  • This is somewhat principled, but are you using multiple web servers in some kind of load balancing configuration? The session object is machine.



Another possibility. This applies even if you are not using the Session object. I've seen this many times.

  1. Is your application accessible through multiple URLs? In other words, http://www.mysite.com and http://mysite.com . Cookies (and sessions) are domain specific and are considered two separate domains. They may be bouncing between the two sites due to factors such as bookmarked pages from both domains or non-relative links / redirects on your site.
+1


source


Is the authentication token stored in a cookie and cookies are now disabled in your browser?



0


source


Is it possible that the application configuration settings have been changed? Or IIS configuration (or newer version of IIS)? Have there been any changes at the system level?

0


source


If no one has changed anything, and no one has entered the game, do you think you are doing iisreset to make sure you are not chasing some rare oddity? I hate resorting to iisresets, but when everything else fails ...

If you could provide more information such as the type of authentication, how it is stored (client cookie or some other method), etc., we could help more.

Good luck

0


source


what do you use to maintain the state? Is it possible that you are losing the session because of the webfarm / webgarden scenerio? I've seen everything work fine for a long time and all of a sudden the application (ok, asp.net) starts choosing / choosing which program it wants to communicate with.

0


source







All Articles