in reply to Re: Cookies Help
in thread Cookies Help

Hey thanks alot,,, but dont you need a module to use CGI.pm,, ??? or am i totaly wrong..hehehe

Replies are listed 'Best First'.
Re: Re: Re: Cookies Help
by batkins (Chaplain) on Dec 10, 2002 at 02:33 UTC
    yeah, but at this point, CGI.pm is pretty much standard. do something like this to create a cookie:

    use CGI;
    
    $q = new CGI;
    my $cookie1 = $q->cookie(-name => 'test', -value => 'test');
    print $q->header(-cookie => $cookie1); 
    
    create multiple cookies like so: -cookie => [$cookie1, $cookie2]
      Okay ,, thanks,,, that seems to be working.. How can I get that cookie now? so i can check the value and match it?
        use
        $q->cookie("test")