Jump to content

Help with php login


houssam_ballout
 Share

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 Edited by 2old2learn?
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. Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...