I\'ve set up a MU install with two domains, using the WordPress MU Domain Mapping-plugin.
The system is first configured with subdomain d2.domain1.com (under sitesan
When changing between subdomain and folder-setup, there might be a error in the wp_site-table. Make sure that the path is set to /
for the main domain.
This is another solution
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
to wp-config.php file.