So for example, the user is logging in, and the system is storing informations about them example: birth date
, so is faster to get this information from the session, or to query the database for it?
My idea was, that the user needs to login just once and the session is always there, but If I query the database, then if the user reloads the page, the system needs to query again and again, instead of getting the data from a temporary 'place'.
I use PHP and MySQL.