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

Re: Setting cookie and location in the same header

From: Swapna Samant <Swapna@ariba.com>
Date: Tue, 1 Oct 2002 10:45:30 -0700
Message-ID: <19A187F26DD4D311949F009027E28ACE0B2F6AA9@us-mtvmail3.ariba.com>
To: "'www-talk@w3.org'" <www-talk@w3.org>
Cc: "'pjpatricio@bes.pt'" <pjpatricio@bes.pt>

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.
Received on Tuesday, 1 October 2002 13:45:46 GMT

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