help writing cookie 2 hosts same domain

From: Date: Fri, 01 Feb 2002 18:34:39 +0000
Subject: help writing cookie 2 hosts same domain
Groups: php.general 
Request: Send a blank email to php-general+get-83162@lists.php.net to get a copy of this message
I'm trying to write a cookie that is properly read by two hosts of the same domain. The hosts: https://secure.domain.com http://www.domain.com With PHP 4.1.1 for Linux on Apache (as module) I've written setcookie("session",$sesscode, "/", "domain.com", "0"); and setcookie("session",$sesscode, "/", ".domain.com", "0"); (diff is the leading 'dot' in the domain) Neither of these are writing a cookie to Netscape 6.2 without the hostname as part of the cookie. How do you write the cookie so that BOTH SERVERS can read it? Thx, RF.

« previous php.general (#83162) next »