Re: [PHP3] problem setting a cookie in https with php4

From: Date: Tue, 13 Jun 2000 23:39:27 +0000
Subject: Re: [PHP3] problem setting a cookie in https with php4
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-1779@lists.php.net to get a copy of this message
In article <Pine.BSI.4.05L.10006131554450.1398-100000@stary.zoomedia.com>, ambi@stary.zoomedia.com (ambi) wrote: > hello all: > > i am trying to set a really basic cookie with php4 running on apache > (mod-ssl) with oracle and mcrpt configured > > here is the script that works on: > 1. php3 running on http > 2. php4 running on http > > but not on: > 2. php4 running on https > > script: > <? > if ($data) > { > echo "data->$data<br>"; > } > else > { > setcookie("data","coooookie!!"); > } Not working as in: 1) You get that error message about output before headers? You must have something else happening on the SSL server that outputs HTML content or blank lines or *something* before the setcookie(). 2) The cookie from the regular server doesn't get to the SSL server or vice versa? I don't think you can make the cookie transfer. You'll have to get the value to go through the URL or POST parameters, I think. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#1779) next »