Answer the question
In order to leave comments, you need to log in
Why is the code behaving so strangely?
This code does not write cookies:
$time = $time; // int количество дней
setcookie("username", 'admin', time() + $time * 86400, '/admin/');
setcookie("username", 'admin', time() + 20 * 86400, '/admin/');
Answer the question
In order to leave comments, you need to log in
before calling setcookie() we write
and see what is really in it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question