Make CommonCookie work with not standard ports.

As stated in http://php.net/manual/en/function.setcookie.php#36202, the
different port shouldn't be added in the domain parameter.