Added cookie variables to allow wildcard cookies to be set for the domain by other non-PHP web apps on the same TLD, or set a path for the cookie domain if required to be different than '/'
With this fix we can use DB_PORT variable