Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: The cookie crumbles

by joealba (Hermit)
on Oct 24, 2001 at 16:29 UTC ( [id://121087]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CGI::Cookie;
    my $c = new CGI::Cookie(
      -name    =>  'COOKIENAME',
    ...
      -domain  =>  '.domain.com'
    );
    print "Set-Cookie: $c\n";
    
  2. or download this
    my %temp = parse CGI::Cookie($ENV{HTTP_COOKIE});
    my %cookies;
    foreach (keys %temp) {
        $cookies{$_} = shift @{$temp{$_}{value}};
    }
    
  3. or download this
    print header();
    my $debug = 1;
    # READ COOKIE CODE
    ...
        print "$_: $cookies{$_}<BR>\n";
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found