what would be better when implementing a php login system sessions or cookies ?
Save in cookies:
And on authentication check if hash of user_id is equal to hash stored in cookies. In this way you don`t have to store anything in server side.