I'm a newbie and I'm trying to build a PHP Session login system.
But I have a few questions, what should I store in the session?
I have downloaded some php login scripts to experiment a little and it seems like they store the username and password in the session.
Why does the password need to be stored? Can I just store the userid in session?
And lastly, authenticating:
Do I simply check if isset session username and id show content else echo please login?
Sorry for my newbie questions!