In local host i could create $username and $_SESSION['username'] and were two different variables, now it seems to interfere?
Jump to Post
1) 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 …
All 6 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.