Does anyone know how to start and ASP on session end ?<BR><BR>I have tried to add the following code into the globol.asa but had no luck.<BR><BR>Sub Session_onEnd<BR> Response.Write "myredirect.asp"<BR>end sub <BR>
I think the problem is that session is a mechanism that keeps track of a single user's access to the site. Session has a timeout. Once timeout is exceeded the session stops being tracked. The response object is not something that the session knows about, because the session can end long after the user has accessed the page and he may not even be connected to the internet any more. <BR><BR>I don't know what you are trying to achieve, but I think that what you need to do is check at the start of an asp page to see if the user has a current session, and if not redirect them to your target page (probably a login page). Your application only needs to set a session variable (eg Session("Id") = IDValue), and then your scripts check to see if the variable has a value. If it has he session is current.
The users want to force a particular page up when the session has ended. This is mainly for security reason and although I cant see any true benefit in this theyre quite adamant about it.<BR><BR>Thanks for you help anyway.<BR>
yes, thats a possibility. Although because the users will be viewing sensitive information they don't want to leave it to the users to terminate/logout their session. As your probably aware many users will just walk away without logging out, leaving the sensitive information still viewable on their screen. Thanks anyway, we will probably at the least add a button like this.