Re: Can't send cookie and redirect together (php3/IIS)

From: Date: Thu, 01 Jun 2000 20:16:08 +0000
Subject: Re: Can't send cookie and redirect together (php3/IIS)
Groups: php.windows 
Request: Send a blank email to php-windows+get-180@lists.php.net to get a copy of this message
Hi, Try <?php setcookie("cookieName",$value,); ?> <META HTTP-EQUIV=Refresh CONTENT=0;URL=http://www.foo.com> Eduardo Jordan G. > >From: editor <editor@yellowjournal.org> >Date: Thu, 01 Jun 2000 16:13:00 -0400 >To: php-windows@lists.php.net >Subject: [PHP-WINDOWS] Can't send cookie and redirect together (php3/IIS) > >I'm trying to set a cookie and redirect to a new page. I've tried: > > setcookie("cookieName",$value,); > header ("Location: <a href="<a > href="http://www.foo.com"PFà°sK~2) > l#’Ƭ);">http://www.foo.com");</a>">http://www.foo.com");">http://www.foo.com");</a></a> > >It does the redirect, but doesn't set the cookie. If I comment out the >redirect, it sets the cookie. If I switch the order of the lines it >does the redirect before it ever gets to the cookie line. I tried >combining the cookie and the redirect into a single "header()" call, but >couldn't find a syntax that works. > >I know this should be simple, but I can't get it. Any suggestions? > > >-- >PHP Windows Mailing List (<a href="<a >href="http://www.php.net/)">http://www.php.net/)</a>">http://www.php.net/)">http://www.php.net/)</a></a> >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net >For additional commands, e-mail: php-windows-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#180) next »