Page 2 of 2

Posted: Tue Oct 02, 2007 9:43 am
by Kieran Huggins
It's my understanding that a persistent connection is shared between all active sessions. The only difference is that you don't incur the overhead of re-connecting/authenticating between PHP and MySQL all the time. Am I mistaken?

If that's the case, the only time when you'll be left with an idle connection is on a server that has virtually no traffic (in which case you can probably afford the extra resources!)

Also, after a little checking, MySQL_close() doesn't affect persistent connections at all.