Cookies and Macs
Posted: Sun Nov 23, 2003 5:07 pm
I'm trying to set a cookie for a session with some PHP code. It works just fine on PC machines, but it's not working on a Mac that is trying to get in. With regards to coding, is there anything different for a Mac as opposed to a PC?
Here's the code:
<?php
if (($username=="username") && ($password="password"))
{
setcookie("login", "yes", 6000);
print "You are logged in.";
}
else
{
print "Failed";
}
?>
Here's the code:
<?php
if (($username=="username") && ($password="password"))
{
setcookie("login", "yes", 6000);
print "You are logged in.";
}
else
{
print "Failed";
}
?>