A
A
Alexander2014-10-22 14:34:03
PHP
Alexander, 2014-10-22 14:34:03

Why are cookies being deleted?

I'm breaking my head for the second hour)
In the test.php file, I set cookies
setcookie("auto", "yes", time()+9999999);
And everything is displayed in the browser.
But if you go to any other page, then all cookies disappear.
What could be the reason?
Ps it started after i moved some files including test.php from the root to a separate folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-10-22
@rdifb0

Read about the 4th parameter "path"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question