Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

barbie (2653)

barbie
  reversethis-{ku. ... m} {ta} {eibrab}
http://barbie.missbarbell.co.uk/

Leader of Birmingham.pm [pm.org] and a CPAN author [cpan.org]. Co-organised YAPC::Europe in 2006 and the 2009 QA Hackathon, responsible for the YAPC Conference Surveys [yapc-surveys.org] and the QA Hackathon [qa-hackathon.org] websites. Also the current caretaker for the CPAN Testers websites and data stores.

If you really want to find out more, buy me a Guinness ;)

Links:
Memoirs of a Roadie [missbarbell.co.uk]
[pm.org]
CPAN Testers Reports [cpantesters.org]
YAPC Conference Surveys [yapc-surveys.org]
QA Hackathon [qa-hackathon.org]

Journal of barbie (2653)

Friday October 11, 2002
07:00 AM

CGI, cookies & mod_perl

[ #8319 ]
After the last week of being baffled as to why session entries keep dropping, I suddenly discover the code in CGI.pm to be at fault.

Running under mod_perl, the cookies are cached by CGI.pm. If those values change they are ignored in preference to the cached versions. I now call CGI::Cookie->fetch directly. A shame the CGI pod page doesn't mention it though. Might have saved me a weeks worth of tweeking.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I know that CGI.pm has special mod_perl code to add a cleanup handler to reset back to initial state. If that's not working for you, please report the bug.
    --
    • Randal L. Schwartz
    • Stonehenge
    • I don't think it's a bug, more the way that CGI->cookie() works. I'm using the NMS version of cookielib, which uses it, although I've changed it to use the CGI::Cookie->fetch mechanism for our purposes.

      If there are special mod_perl prerequisites then they aren't specified under the "HTTP COOKIES" section of the POD, which is where I would have expected them. I checked for mod_perl references in the POD, of which there are two, and neither mention anything about the handling of cookies :(

      I've notic