Answer the question
In order to leave comments, you need to log in
Why is the cookie not being created?
I read the documentation, searched the Internet, but did not understand: why is the file not being created, although it should?
for ($j = 0 ; $j < $rows ; ++$j)
{
$result->data_seek($j);
$row = $result->fetch_array(MYSQLI_ASSOC);
if($name==$row['имя'] && $surname==$row['фамилия'] && $password==$row['пароль'])
{
$id=$row['id'];
setcookie("TestCookie", $id, time()+3600);
echo "<script>document.location.href='../hiPage/hiPage.php'</script>";
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question