K
K
Konstantin Khairov2017-08-19 02:45:00
PHP
Konstantin Khairov, 2017-08-19 02:45:00

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

1 answer(s)
A
Alexander Shapoval, 2017-08-19
@sanek_os9

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 question

Ask a Question

731 491 924 answers to any question