Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set!
| From: | Mike Potter | Date: | Wed, 22 Jan 2003 03:26:06 +0000 |
| Subject: | Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132547@lists.php.net to get a copy of this message | ||
I tried this one as well. When trying to load, the browser says
HTTP 500 - Internal server error
Internet Explorer
I even rebooted!
Mike
"Jason K Larson" <jlarson@candlefire.org> wrote in message
news:3E2E0493.1090806@candlefire.org...
> Follow the ISAPI module install instructions.
>
> http://www.php.net/manual/en/install.iis.php
>
> Regards,
> Jason k Larson
>
>
> Mike Potter wrote:
>
> > Do you know how do do this?
> >
> > Thanks,
> > Mike
> >
> >
> > "Jason K Larson" wrote in message
> > news:3E2DDD9C.7050009@candlefire.org...
> >
> > >Discussion on this list has suggested that it can work if PHP is set to
> > >run as ISAPI, not CGI.
> > >
> > >HTH,
> > >Jason k Larson
> > >
> > >
> > >Mike Potter wrote:
> > >
> > >>HELP!
> > >>I know I'm new at this so please don't laugh. But I can't get this
> > >>to
> >
> > work!
> >
> > >>I am using Microsoft IIS with the latest PHP installed.
> > >>Here's a smple:
> > >>
> > >>.
> > >>.
> > >>.
> > >>setcookie("testCookie", "testValue", time() + 3600,
> > >>"/");
> > >>header("Location: http://newpage.php");
> > >>exit;
> > >>
> > >>
> > >>Later, I pull the cookie:
> > >>
> > >>echo $_COOKIE["testCookie"];
> > >>
> > >>and there is no value. If I don't use the header function at the end,
> >
> > and
> >
> > >>write something to the page, it works fine.
> > >>Why does this cookie not get set?
> > >>
> > >>Thanks a ton!
> > >>
> > >>Mike
>