PDA

View Full Version : global.asa Session OnEnd alert


foreigner737
01-13-2010, 09:23 PM
Hi friends,

I am trying to edit my global.asa such that it sould pop up an alert to the user whenever the users session expires. :rolleyes:

Could not find what line to add to the file.
Sorry if it has been post before.

Thank you for your comments.

Old Pedant
01-13-2010, 10:03 PM
Can't be done.

global.asa has no access to the Response object, and only the Response object can send data back to the user.

But even if global.asa could use Response, it wouldn't help.

Because the HTTP protocol is strictly a "pull" protocol. Meaning that ONLY when the browser sends a Request to the server can the server send back a response. The server can never "push" stuff out to the client.

If you want to warn users about sessions expiring, you'll have to write JavaScript code that gets the time remaining from the server, when the page is created, and then does a countdown, all in the browser.