in reply to Re: SeaMonkey 2.0.8 Cookie Issues
in thread SeaMonkey 2.0.8 Cookie Issues

I reinstalled CGI.pm just in case.

When I try to get the cookie value for the previously set cookie

#!/usr/bin/perl use strict; use warnings; use CGI; use lib '/home/user/perl/usr/lib/perl5/site_perl/5.8.8'; my $query = new CGI; print $query->header; print $query->start_html(); my $cookie = $query->cookie('OLD_COOKIE'); print "IT IS: $cookie";

I get "IT IS:" when I change the cookie name my $cookie = $query->cookie('NEW_COOKIE'); , I get "IT IS: cookie value"

Replies are listed 'Best First'.
Re^3: SeaMonkey 2.0.8 Cookie Issues
by Corion (Patriarch) on Oct 10, 2010 at 20:12 UTC

    Maybe the URL changed. Are you sure that the browser is actually sending the old cookie value? Have you checked with a network sniffer?

      URL is unchanged. It worked not too long ago and the script is unchanged. Only the browser has changed.

        So, what steps have you taken to determine what exactly is different? Is the browser still sending the old cookie? Does the browser still know about the old cookie? Is the browser sending the old cookie in a format that Perl/CGI can't understand? Did you install the old version of the browser?

        If you are too lazy to take any of these steps, why not simply send the old cookie from a Perl script to the browser? It's a one-time thing and then you're good, at least up until the next upgrade.