Add the following code snippet to your wp-config.php file to set cookies for your WordPress installation, typically used for a multisite installation.

define ( 'COOKIE_DOMAIN', '.yourdomain.com' ); 
define ( 'COOKIEPATH', '/' ); 
define ( 'SITECOOKIEPATH', '/' );