W3C home > Mailing lists > Public > www-talk@w3.org > September to October 2002

Re: Setting cookie and location in the same header

From: xuefer tinys <xuefer@hotmail.com>
Date: Fri, 04 Oct 2002 18:22:31 +0000
To: Swapna@ariba.com, www-talk@w3.org
Cc: pjpatricio@bes.pt
Message-ID: <F77kScfpVhYAUTsmSWz0000b625@hotmail.com>

as i know, even same domain
cannot set cookie when doing redirect

test with php+apche+ie

>From: Swapna Samant <Swapna@ariba.com>
>To: "'www-talk@w3.org'" <www-talk@w3.org>
>CC: "'pjpatricio@bes.pt'" <pjpatricio@bes.pt>
>Subject: Re: Setting cookie and location in the same header
>Date: Tue, 1 Oct 2002 10:45:30 -0700 
>
>
>Actually, found out that this is a defect in IIS and the way to get around
>it was to rename the file prepending it with "nph-" which tells IIS to not
>parse the headers and just use the headers that are sent as is.
>Then I could send both the cookie and location headers at the same time.
>
>         print $cgi->header(-status => "302 (Found) Moved Temporarily",
>                            -cookie => $cookie,
>                            -location => $location,
>                            -type => "text/html",
>                            -nph => 1);
>
>Thank you,
>Swapna.




_________________________________________________________________
 MSN Explorer: http://explorer.msn.com/lccn/
Received on Friday, 4 October 2002 14:23:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:27 GMT