Answer the question
In order to leave comments, you need to log in
Cookies are registered from the wrong domain?
Hello . Put a script from one advertiser. Everything is fine, but I just noticed. The script somehow writes cookies, and not from my domain (example.com), but from the domain (.example.com), that is, instead of example.com, my domain, but it is written from the address with a dot, respectively, I cannot delete these cookies from the site like this how my site is determined by the browser without the dot . What can be wrong? How to remove something like this?
Answer the question
In order to leave comments, you need to log in
php.net/manual/ru/function.setcookie.php
Path to the directory on the server from which cookies will be available. If set to '/', cookies will be available in the entire domain . If set to '/foo/', cookies will only be available from the /foo/ directory and all its subdirectories (for example, /foo/bar/) of the domain . The default value is the current directory where the cookie is set.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question