Pull cookie domain and path from ini instead of $_SERVER

When a server is behind a proxy, HTTP_HOST returns the host name and not the proxy name. The easiest and most reliable way to get cookie domain and path is via ini_get(). Users may choose to set this in their httpd, vhost, or .htaccess config file.