Cookie Domain for subdomain

COOKIE DOMAIN must be set in config if user want to use COOKIE DOMAIN.

Please consider to put DOMAIN HOST at config.php too…
Merge pull request #1084 from byteGator/D--Cookie-Domain

Cookie Domain for subdomain (#1031 and #936)