IN A PHP LOGIN SYSTEM WHAT VARIABLES SHOULD I STORE IN THE SESSIONS? email and password or just the user id?
IN A PHP LOGIN SYSTEM WHAT VARIABLES SHOULD I STORE IN THE SESSIONS? email and password or just the user id?
The bandstand is storing the email / username and id, or just the "id" since with the "id" you can get other user data. It is not a good idea to store a password in the session, 1st because of security, because you will not need the password to perform other operations besides the login.