Fixed cookie behaviour when behind a reverse proxy with a different hostname. See PHPCRED-28