Login system with sessions [duplicate]

-2

IN A PHP LOGIN SYSTEM WHAT VARIABLES SHOULD I STORE IN THE SESSIONS? email and password or just the user id?

    
asked by anonymous 19.10.2016 / 05:18

1 answer

0

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.

    
19.10.2016 / 13:13