Changeset 639

Show
Ignore:
Timestamp:
07/06/06 13:45:02 (2 years ago)
Author:
donncha
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-settings.php

    r592 r639  
    225225        define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) ); 
    226226if ( !defined('COOKIE_DOMAIN') ) 
    227         define('COOKIE_DOMAIN', false); 
     227        define('COOKIE_DOMAIN', '.' . $current_site->domain); 
    228228 
    229229require (ABSPATH . WPINC . '/vars.php');