hey, i've been in a middle of a problem about passing a php variable from one .php page to another?
for example:
if im in a middle of sign.php which has a variable called $username:
this user name is to be known through all the rest .php pages in my project
as long as the cookies for this user name are set.
thank you.
Decency
0
Newbie Poster
Recommended Answers
Jump to PostIf you are already setting the username in a cookie
e.g.setcookie("your_cookie", $username, time()+99999999, "/", ".domain.name.com", 0);
Then you can just check it's set:
$_COOKIE['your_cookie']
on top of that you can check the username variable, along with passwords, and compare them to the contents …
All 3 Replies
Reply to this topic
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.