PHP Login, Store Session Variables.

Posted by Andreas Carlbom on Stack Overflow See other posts from Stack Overflow or by Andreas Carlbom
Published on 2010-03-23T12:04:18Z Indexed on 2010/03/23 12:13 UTC
Read the original article Hit count: 251

Filed under:
|
|

Yo. I'm trying to make a simple login system in PHP and my problem is this: I don't really understand sessions.

Now, when I log a user in, I run session_register("user"); but I don't really understand what I'm up to. Does that session variable contain any identifiable information, so that I for example can get it out via $_SESSION["user"] or will I have to store the username in a separate variable? Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql