MySQL connection
| From: | Karl DeSaulniers | Date: | Sun, 05 Mar 2017 23:54:03 +0000 |
| Subject: | MySQL connection | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-49168@lists.php.net to get a copy of this message | ||
Hello everyone,
Long time. Hope all are well.
Quick question. How should MySQL connections be treated?
Is it ok to leave them open or is it better to close them after transactions?
I have a website that uses sessions and was wondering if there was any situations where I should be
closing the connection.
Either for performance reasons or security or best practices.
Just wondering your professional.
TIA
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com <http://designdrumm.com/>