Perl Monk, Perl Meditation | |
PerlMonks |
reading and writing a CGI cookie in the same pageby ibanix (Hermit) |
on Feb 21, 2003 at 01:49 UTC ( [id://237302]=perlquestion: print w/replies, xml ) | Need Help?? |
ibanix has asked for the wisdom of the Perl Monks concerning the following question:
Hi fellow monks, I've got a CGI app in development. I'm trying to set a cookie, and then immediately read from it. I don't seem to have any problems setting the cookie, but I can't seem to read right back from it. Code looks something like this: If I put debug info in, I can see that the cookie is being created, but not read; on the next refresh or call of the script the cookie is read. Am I doing something wrong, or can't you create and read a cookie in the same pageview? Thanks~! $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;
Back to
Seekers of Perl Wisdom
|
|