houssam_ballout Posted May 6, 2011 Share Posted May 6, 2011 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 Link to comment Share on other sites More sharing options...
2old2learn? Posted May 6, 2011 Share Posted May 6, 2011 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 helpThanksp/d Link to comment Share on other sites More sharing options...
thescientist Posted May 6, 2011 Share Posted May 6, 2011 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 More sharing options...
houssam_ballout Posted May 6, 2011 Author Share Posted May 6, 2011 the documentation shows it as being all lowercaseIts telling me root ?? Link to comment Share on other sites More sharing options...
2old2learn? Posted May 6, 2011 Share Posted May 6, 2011 Its telling me root ??It will help very much if you post the script you did..for testing..not the actual site info... Link to comment Share on other sites More sharing options...
thescientist Posted May 6, 2011 Share Posted May 6, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.