Re: disconnect
- From: Andy Hassall <andy@xxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 22:29:22 +0100
On Thu, 28 Apr 2005 23:21:07 +0200, "ste" <str@xxxxxxxxxxx> wrote:
>Is it possible to know when a client disconnect physically from apache
>server
That would be at the end of the script, or possibly earlier.
http://uk2.php.net/manual/en/features.connection-handling.php
http://uk2.php.net/register_shutdown_function
... or just at the bottom of the file.
Or possibly a bit later due to HTTP/1.1 keepalives, it depends what you're
after.
>(in another words when the clients closes its browser)
Closing the browser has nothing to do with closing the connection to Apache.
>I'm doing a php extension under win32/apache and I don't "see" any message
>I can trap to detect that kind of state...
There is no reliable way to do this; it's not how HTTP works.
There are possibly Javascript methods to do this, try comp.lang.javascript for
more details.
--
Andy Hassall / <andy@xxxxxxxxxxx> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
.
- Follow-Ups:
- Re: disconnect
- From: Jeff North
- Re: disconnect
- References:
- disconnect
- From: ste
- disconnect
- Prev by Date: disconnect
- Next by Date: Re: classes confusion
- Previous by thread: disconnect
- Next by thread: Re: disconnect
- Index(es):
Relevant Pages
|