From 85381c1176f66aaecfd057d659e705da90facf78 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 6 Jul 2006 13:45:02 +0000 Subject: Allow side-wide login cookies for vhosts. Warning! This has the side effect that *anyone* on your site can steal your login cookie if they can execute Javascript in their blog. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@639 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-settings.php') diff --git a/wp-settings.php b/wp-settings.php index 50ba158..a70c430 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -224,7 +224,7 @@ if ( !defined('COOKIEPATH') ) if ( !defined('SITECOOKIEPATH') ) define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) ); if ( !defined('COOKIE_DOMAIN') ) - define('COOKIE_DOMAIN', false); + define('COOKIE_DOMAIN', '.' . $current_site->domain); require (ABSPATH . WPINC . '/vars.php'); -- cgit