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.
Am I reinventing the wheel?
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact: