Jump to content

Help with php login


houssam_ballout

Recommended Posts

Hello,I am using this script for users to login:http://frozenade.wordpress.com/2007/11/24/...l-with-session/well, when I am in the securedpage, how can I retrieve the ID (or username) being logged on.$_SESSION['Username'] is not working,Any helpThanks
p/d
Link to comment
Share on other sites

the documentation shows it as being all lowercase

$_SESSION['username'] = $_POST['username'];...<p>This is secured page with session: <b><?php echo $_SESSION['username']; ?></b>
Link to comment
Share on other sites

Its telling me root ??
what do you mean? casing matters with member names in arrays. so username is not the same as Username.As suggested, it's much easier for us to help you if you post the code you're actually using.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...