|The stupid question is the question not asked|
Problems reading ALL cookiesby Hammy (Scribe)
|on Apr 22, 2010 at 16:17 UTC||Need Help??|
Hammy has asked for the
wisdom of the Perl Monks concerning the following question:
Hello Monks, I am have some very simple code that is completely baffling me. I have an HTML file that sets cookies. I have another html file that displays the cookies perfectly. I have also written a simple Perl script that does not show the cookies consistently. I have listed each piece of code below:
Set the cookie - works as expected:
Show the cookie with HTML - works as expected:
Show the cookie with Perl - only works if cookie is empty
I have tried this on a few servers.
One: Free BSD / Apache 1.3.41 / Perl 5.6.1 shows both cookies with Perl and both with html.
Two: Red Hat ES 4 / Apache 2.0.52 / Perl 5.8.5 shows no cookies with Perl script and both with html.
Three: Red Hat 5.3 / Apache 2.2.3 / Perl 5.8.8 shows only empty cookies (gg) with Perl and both with html.