The constant _COOKIE_PATH
is used to indicate the domain to be used for all SPIP cookies, and in particular session cookies.
It is possible to customize this value in your file
config/mes_options.php
(See the article dedicated to it).
Example :
define('_COOKIE_PATH','mydomain.org');