hygienically

$cookie) { $parts = explode("=", $cookie); $name = trim($parts[0]); $domain = parse_url($_SERVER['SERVER_NAME']);