And actually the question of how best to do it.
Ie for example I autoritou user on the website, create the session and its ID written in the cookie.
Further, the user has a lot of information, login ID, ID, ID, all cities, countries and regions of residence, his mail, Telefon, etc can be stored in multiple tables. Access to this data is required if not on every page very often and everywhere to pull MySQL selecting data, albeit universal, not very much.
The question arises, whether to store the whole packet data tying them to the sessions and how to make it more versatile in order to then easily pull this data.
Ie to write to the table:
session_id | serialize_data
or otherwise somehow?
All your favorite PHP )