You are here: Re: Session with Database « PHP Programming Language « IT news, forums, messages
Re: Session with Database

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация