Ok, I understand. I was able to get NS to set the cookie, but -only- if I put nothing in the domain field.
setcookie("NSUSERNAME", "cday", time()+2592000, "/", ".domain.com"); echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0;url=nscookie2.php\">"; did not work. domain.com also did not work . . this is kind of a pain, but this is what I get for trying to make a site NS 4.x compatible I guess. Is there any way to specify the domain of a cookie with NS 4.x in this kind of situation? Thanks, Chad -----Original Message----- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 5:30 PM To: Chad Day; php general Subject: RE: [PHP] Cookie handling, NS 4.x? --- Chad Day <[EMAIL PROTECTED]> wrote: > I'm not sure how this would matter since the cookie is > never set at all.. it's not an issue of it reading the > cookie, as it can't read what is never set. I'll give > it a shot when I get home though anyway. Read my response again, and you'll see that what you are saying here does not conflict. The cookie is indeed not getting set, and that is likely because the browser does not take action on the Set-Cookie header when it is contained within a 302 response. If you use a meta redirect rather than a header("Location: ...") call, the response status will be 200 instead of 302, so the browser might accept the cookie. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php