Page 1 of 1

Cookie set on HTTPs usable on HTTP?

Posted: Mon Apr 14, 2003 11:40 pm
by rxsid
Hi all,

I'm trying to set a cookie on a https url, then meta refresh to a http url and have that cookie work on the http pages...but it's not working. here's what i've got:

Code: Select all

$cookieDuration = time() + 3600;
$whichPath = "/";
$whichDomain = ".somesite.com";
setcookie ("const", "var",$cookieDuration,$whichPath,$whichDomain);
if i set the last parm to 1, then the cookie is only "usable" on a secure path....right?