I created a Website for an project. For the login i wanted to create cookies which are important for further steps.
if( $row->Passwort == $pass && $row->Benutzername == $username )
{
setcookie("username",$username,time()+3600);
setcookie("pass",$pass,time()+3600) ;
$_SESSION["Name"] = $row->Vorname;
echo body();
}
the body() is the website displayed after.
My problem: i get the body() works however no cookie is created (on Mac [MAMP]), however if i run the exact same files on on Windows(XAMP) everything works perfectly fine. Please help me :/
If more questions please ask(sry bad english).