I took your advice and tried switching it over to a TransHandler.  Now, the
beginning of the handler where I manipulate the cookies looks like this:

sub handler {
    my $r = shift;
    my $cookieString = $r->headers_in->get('Cookie');
    ...
}

I then do a check to see if the cookies exist; that tells me whether it's a
client's first request, or a subsequent one.  I then need to read a bunch of
information out of the cookies and then rewrite one of them.  Unfortunately,
the above code always yields me an empty string.  I can check my browser
cookies and see that they've been set correctly.  Can the TransHandler
manipulate the request headers apart from the URI?  Or am I just missing
something?

Thanks,
Dan

On Thu, Oct 9, 2008 at 8:50 AM, Torsten Foertsch
<[EMAIL PROTECTED]>wrote:

> On Thu 09 Oct 2008, Dan DeSmet wrote:
> > I'm attempting to write an input filter that performs an internal
> > redirect based on the contents of the cookies sent in the request
> > headers.
>
> Why an input filter? What you want is better done in a PerlTransHandler
> or a PerlFixupHandler.
>
> Torsten
>
> --
> Need professional mod_perl support?
> Just hire me: [EMAIL PROTECTED]
>

Reply via email to