Or any other method, for that matter.
I'm trying to create a setcookie string that will place ".domain.com" as the domain, domain.com being whatever being whatever domain the script has been installed on.
$_SERVER['SERVER_NAME'] gets me a server name with whatever subdomain is at the front. I'd like to make sure I end up with only ".domain.com".
How can I make this happen?
Thanks for your time!