So, for example, the user logs into the system, and the system stores information about them, for example: birth date , so is it faster to get this information from the session or to request a database for it?
My idea was that the user only needs to log in once, and the session always exists, but if I query the database, then if the user reloads the page, the system should query again and again, instead of receiving data from a temporary "places".
I use PHP and MySQL.
performance database login session temporary
Adam
source share