wolverina has asked for the wisdom of the Perl Monks concerning the following question:
It prints the contents of $cookie_in when i hit reload on the browser. But if i cut this part of the script out:#!/usr/local/bin/perl use CGI; $q = new CGI; $cookie_out = $q->cookie(-name=>"wolves", -value=>"cookieinfo",-expires=>'+24h'); print $q->header(-cookie=>$cookie_out); $cookie_in = $q->cookie("wolves"); print $cookie_in;
and create a new script, the new script does not read the cookie back in. It only works if i have the read and write cookie lines in the same script, which kind of ruins the purpose of having a cookie. -Lisause CGI; $q = new CGI; $cookie_in = $q->cookie("wolves"); print $cookie_in;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Crumby cookie
by Hero Zzyzzx (Curate) on Nov 21, 2002 at 05:04 UTC | |
by wolverina (Beadle) on Nov 21, 2002 at 17:00 UTC | |
|
Re: Crumby cookie
by blaze (Friar) on Nov 21, 2002 at 01:11 UTC | |
by wolverina (Beadle) on Nov 21, 2002 at 01:52 UTC | |
by wolverina (Beadle) on Nov 21, 2002 at 02:00 UTC | |
|
Re: Crumby cookie
by blaze (Friar) on Nov 21, 2002 at 00:58 UTC | |
|
Re: Crumby cookie
by wolverina (Beadle) on Nov 20, 2002 at 22:51 UTC |