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
it's not a good idea cause almost always a connection to the database will be closed automatically if the script has ended