>I've just started learning modperl and I started with a simple module
>for apache httpd 1.3.22.
>This simple module (see below) sets & gets a cookie at every request.
>I thought it wasn't too difficult. I put it into the fixup phase (any
>problem with it?).
>First it seemed to work, but when I put a 'print STDERR' line in it, I
>saw that my script ran many times on one request.

What is your interpretation of 'one' request?  Remember, when requesting a 
url there may be 'many' requests that go along with it for loading images 
and other media.

If you don't want to set/get cookie for every request try filtering based 
on $r->content_type.  But, your handler will still be called for every 
request : )


-- There is always somebody better than you . . .
-- Until you realize this you can never be the best.

Stathy G. Touloumis
Coder

Reply via email to