Login system and sessions (php)

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-04-08T15:12:49Z Indexed on 2010/04/08 15:43 UTC
Read the original article Hit count: 158

Filed under:
|
|

I've created a login page and registration page and now I want to use that to password protect pages and have pages which show information specific to that user.

Would storing the user ID of the user logged in in a Session variable be a safe and correct way of doing this?

How easy would it be for a user to change the session variable to a different ID and access another user's information, and not having to type the users login details in?

© Stack Overflow or respective owner

Related posts about session

Related posts about login