WordPress ignores cookie settings for session cookie
-
Hi,
this WordPress instance is installed in sub folder wmc2 in web server directory. In wp-config.php I set various cookie related settings:
define('COOKIE_DOMAIN', 'www.wine-logistix.de'); define('COOKIEPATH', '/wmc2/'); define('SITECOOKIEPATH', '/wmc2/'); define('ADMIN_COOKIE_PATH', '/wmc2/wp-admin/'); define('PLUGINS_COOKIE_PATH', '/wmc2/');
These settings, especially the path settings, must be set in order for WordPress to not interfere with other applications starting their own sessions. WP_HOME and WP_SITEURL also includes /wmc2/ in URL.
However, some settings seem to be ignored. Whenever I visit the wordpress site, the received PHPSESSID cookie has following settings:
Host: www.wine-logistix.de Path: /
where
Path
is obviously wrong. PHPSESSID is set by index.php and its includes; network monitor in Firefox and Chrome show that. I have searched for occurences ofsession_start
in all files and addedsession_set_cookie_params
in a theme file where it was missing, but that didn’t change anything.Where can I look further or get the PHPSESSID cookie path right?
- The topic ‘WordPress ignores cookie settings for session cookie’ is closed to new replies.