I'm trying to figure out if it is better to store my user's data in a session cookie (like password, username, etc), and update that cookie only when I change the MYSQL database from my PHP,
OR
Store the user's username and user ID in a session cookie and reach out to the MYSQL database every time I need to get the user's data.
Which one is the better method..? I've never actually set up a login system so any advice would be much appreciated.