$cookie_domain

  1. drupal
    1. 6 developer/globals.php
    2. 7 developer/globals.php
    3. 8 developer/globals.php

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

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

Code

global $cookie_domain

Comments

setting cookie_domain causes site error

example provided in settings.php file is not proper for Drupal 6.17 and above,
correct version:
# $cookie_domain = '.example.com'; // there's . before example.com

tml1, you are right! Thanks a

tml1, you are right!
Thanks a lot!

was using 6.20. I think this

was using 6.20.
I think this fixed access denied for user 1 issue too.
shouldn't it be committed or something?

Login or register to post comments