storing connection info in the session

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

storing connection info in the session

Post by davidklonski »

Hi

I was wondering whether it is considered a good practice to store a database connection and selection info in the user session.
Otherwise, I will have to re-connect to the database upon every request.

thanks
Post Reply