Merlin83 has asked for the wisdom of the Perl Monks concerning the following question:
#!/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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Cookie Failure
by steveAZ98 (Monk) on Aug 02, 2000 at 21:58 UTC | |
|
RE: Cookie Failure
by agoth (Chaplain) on Aug 02, 2000 at 21:29 UTC | |
by Merlin83 (Novice) on Aug 03, 2000 at 03:29 UTC | |
|
Re: Cookie Failure
by slurp (Initiate) on Aug 03, 2000 at 02:46 UTC | |
by Merlin83 (Novice) on Aug 03, 2000 at 03:01 UTC | |
by agoth (Chaplain) on Aug 03, 2000 at 12:50 UTC | |
by Merlin83 (Novice) on Aug 03, 2000 at 14:28 UTC | |
|
Re: Cookie Failure
by Merlin83 (Novice) on Aug 02, 2000 at 23:15 UTC |