Session_OnStart problems in Global.asa

I am using some Ajax to check things like if the username already exists. If a session times out, instead of getting nothing or the correct return in my <span>, I get the login page. Also, if a user sits at the login screen for longer than the session timeout, when they go to login, it will just redirect them back to the login page. If they then login again, it will work. What do I do about these?

That is more of a business decision that technical one. Do you want the user to never expire the session? If so you could have an image getting refreshed in Javascript or have a hidden frame getting refreshed every 5 minutes or so to keep the session alive.

I would like sessions to expire. In the page headers, I have meta http-equiv="refresh" to logout the users at a specified interval. The problem is both the register.asp (which uses the ajax) and the login page are not behind authentication. So anyone could open a session by going to one of those pages. If they just sit on the page I don't want to keep sessions alive indefinitely. I would like to release the memory. I guess I could use the meta http-equiv="refresh" to redirect the user back to the login page from register.asp at a specific time. I then still have the problem with the login.asp.

Then in login.asp let the session last as long as the page is open by using a hidden image or iframe. Once the page is closed, the session would go away in 20 minutes (or whatever is session timeout) but as long as the user keep the page open, the session would be alive. Since all other pages are protected, this is the only page that would do it and should not have much impact on the server. If that is not desirable, have this page refresh using the same technique (meta refresh) but then the user would lose if something was filled out.

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update.
The Original Issue
This was written…

Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…