Posted by Chung Leong on 09/08/06 03:33
Gucci wrote:
> i see.
> the http server wouldn't run the script until it get the acknowledg by
> the client.
> the database is just connnected with the the http server,
> so how long will it keep connecting depends on the http server.
> the clinet just keeps a connection with the http server.
Not quite. The script won't terminate until it receives the final block
of data is acknowledged by the client. This is just a property of
TCP/IP.
To save a session in a database, you need to keep the database
connection open for the session handler to use. If you don't close the
session manually, then this means you can't close the connection within
your script, since the session is automatically saved after the script
ends. If you close the session, then you can close the connection
before you start outputing.
[Back to original message]
|