Discussion Locked

ASP Application - Global.asa

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am having trouble with my web application recognizing the global.asa file. I know for sure it is not getting cached, because when my Session Times out, it doesn't do a redirect. See Code Below.

I have changed the folder properties on IIS to make the folder an Application folder, but that didn't seem to make a difference. I am out of ideas.

------------------

-------------------

Is there another IIS setting that needs to change?
Any help would be appreciated.

Vince

4 replies

by |_|di

First, from a design perspective:

When a session times out ( after an interval which you specify ) it usually means that the user is gone. That is not the time to try to send them to a different page, but to clear out any memory you may have usedfor them, or possibly writing out to a log file, db, etc, information you stored about their visit.

From a technical perspective:

The server has lost any connection it had with the client. You must remember that the ASP call to Response.Redirect generates HTTP headers which make the browser generate a request to the new URL. This obviously can't be done at the end of a session.

by williamsbyron

There is no user at this time and there is no request so a response is nonexistant. If you are looking far a page to refresh after a certain time then you would want to put that in the page that actually goes to the client in a meta tag. I don't remeber the exact syntax but I believe would be 60 seconds. If you are looking to make the page expire then you would put that in the page that returns to the client also using response.expires. I hope this helps.

by achitse

Hi,

The following 2 things can be tried out...

1) Check the cookie setting on the agent (Cookies should be enabled).

2) This is a way out, but may not practical in many scenarios.

Write an include as follows, and include it in every pageor in a page which is included in every page...

Achit

by achitse

Hi,

The following 2 things can be tried out...

1) Check the cookie setting on the agent (Cookies should be enabled).

2) This is a way out, but may not practical in many scenarios.

Write an include as follows, and include it in every pageor in a page which is included in every page...

Will let you know if anything else, would solve the problem efficiently.

Achit

This discussion is closed to new replies.