Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

RE: RE: cookie using cgi.pm

by csorensen (Beadle)
on Jun 30, 2000 at 22:02 UTC ( #20643=note: print w/ replies, xml ) Need Help??


in reply to RE: cookie using cgi.pm
in thread cookie using cgi.pm

actually .. setting the cookie and defining it all on the same line has never worked for me ..
that's why I wrote the cookie this way .. I have tried both of the methods you suggested (they are what I meant by a more perl'ish way) but they didn't work.


Comment on RE: RE: cookie using cgi.pm
RE: RE: RE: cookie using cgi.pm
by bliz (Acolyte) on Jul 01, 2000 at 02:26 UTC
    they both worked fine for me?!? I tested them before posting them, and don't see a problem with them... ?!? Just for a cut and paste example,
    #!/usr/bin/perl -w use strict; use CGI qw/:standard/; print header( -type => 'text/plain', -cookie => cookie( -name=>'ident', -value=>'eatit200') ); print <<END_BLOCK; Eat it 200 my friend! Your cookie is now set! END_BLOCK 1;
      I just did a cut and paste ... I get a cgiwrap error every time ..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2014-12-27 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls