Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: SeaMonkey 2.0.8 Cookie Issues

by Corion (Patriarch)
on Oct 10, 2010 at 19:52 UTC ( [id://864513]=note: print w/replies, xml ) Need Help??


in reply to SeaMonkey 2.0.8 Cookie Issues

You don't show any code and don't tell us anything about your setup and the environment, so my advice is somewhat vague. You can help us help you better by posting the relevant parts of the code, preferrably as a self-contained script of a length of about 20 lines.

Look at what data your script receives. Look at where it differs from what you expect. Use CGI to extract the cookies.

Replies are listed 'Best First'.
Re^2: SeaMonkey 2.0.8 Cookie Issues
by Anonymous Monk on Oct 10, 2010 at 20:05 UTC

    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"

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://864513]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found