#!/usr/bin/perl use CGI; use CGI::Carp (fatalsToBrowser); $co = new CGI; $cookie = $co->cookie( -name=>'test', -expires=>'+1h', -value=>'saveme' ); print $co->header(-cookie=>$cookie); print 'output';
No apart from the fact that I haven't bothered sending a proper HTML page (stripped to the barest remember) why won't this snippet make a cookie?
In reply to Cookie Failure by Merlin83
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |