In local host i could create $username and $_SESSION['username'] and were two different variables, now it seems to interfere?
centenond 5 Junior Poster
Recommended Answers
Jump to Post1) both are different
2) one is $username is local page variable and $_SESSION['username'] is a session variable and its an array too.
3) even $UserName, $userName, $_SESSION['uSERnAME'], $_SESSION['UserName'] all are different as php is case sensitive
4) any $_SESSION variable is available globally across all pages if you start …
Jump to PostIs register globals turned on perhaps?
All 6 Replies
urtrivedi 276 Nearly a Posting Virtuoso
centenond 5 Junior Poster
centenond 5 Junior Poster
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
centenond 5 Junior Poster
centenond 5 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.