global $cookie_domain

  1. 7.x documentation-7.x/developer/globals.php cookie_domain
  2. 6.x documentation-6.x/developer/globals.php cookie_domain

The domain to be used for session cookies.

Cookie domains must contain at least one dot other than the first (RFC 2109). For hosts such as 'localhost' or an IP Addresses the cookie domain will not be set.

File

documentation-6.x/developer/globals.php, line 55
These are the global variables that Drupal uses.

Code

global $cookie_domain;