"Heinrich Klein" <to*********@gmx.at> wrote in message
news:bp*************@ID-135917.news.uni-berlin.de...
I have got an the Unload Handler is it possible when the Browser
is closed to send a Method post to a CGI program? If yes how can
i do this normally i need to push a Button. Thanks for your help
Forget it. You cannot do anything like that in onunload events reliably.
Once the browser gets the idea that is closing down it stops bothering
to send requests to servers, probably assuming that there would be no
point as it won't be around to receive any responses it may get.
But the request for this functionality is usually to do with some
server-side log off or clean up and demonstrates a lack of appreciation
of the nature of HTTP as a stateless protocol. Usually, in the event of
a user not logging themselves out actively (so most of the time) the
point at which you sort out finalising the state of whatever it is on
the server that may need finalising is when the user's session times
out.
Richard.