primus has asked for the wisdom of the Perl Monks concerning the following question:
though i am confused, because if you are working with a webpage, then you have to print out "Content-type:text/html\n\n" right? so if you do:print $query->header(-cookie => $cookie);
it just prints the cookie to the browser... but if i switch, or get rid of the print "Content-type:text/html\n\n"; then it works fine... and i missing something simple here?print "Content-type:text/html\n\n"; $query = CGI->new(); # cookie stuff print $query->header(-cookie => $cookie);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI cookies
by Ionizor (Pilgrim) on Jan 15, 2003 at 17:58 UTC | |
|
Re: CGI cookies
by Bilbo (Pilgrim) on Jan 16, 2003 at 10:08 UTC |