http://www.perlmonks.org?node_id=1007379


in reply to Cookie handling

# A bug in Netscape can cause several cookies with same name to # appear. The FIRST one in HTTP_COOKIE is the most recent version.

I know this comment from ancient times of CGI.pm. I think it is for Netscape Navigator 4 or even an older version. It is present in the oldest version available on CPAN, v2.45 released 1998-Nov-25. At that time, Netscape Navigator 4.08 was the latest version, and many users still used NN 4.0 or NN 3.x.

NN has not seen a new release since 2008 and is effectively dead. I consider the commented hack legacy code, almost cargo cult. It does not hurt to have it there, but I doubt it has any effect with any browser released in the last years.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: Cookie handling
by McA (Priest) on Dec 06, 2012 at 11:45 UTC

    Hi,

    the funny thing is, that now (I don't know since when) it's not a bug to send more than one cookie with the same name.

    Best regards
    McA