[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Need help writing Authz handler
From:       Doug MacEachern <dougm () cp ! net>
Date:       1999-03-31 22:16:37
[Download RAW message or body]

At 08:23 AM 3/29/99 -0600, Olsen, James wrote:
>Hello Everyone,
>
>I'm having a little trouble finding the detailed documentation on all the 
>stages of a HTTP request.
>
>I would basically like to check the value of a cookie. If it is set, return 
>OK. If it is not set, return AUTH_REQUIRED.
>
>However, I believe that Apache doesn't set cookies until after this stage 
>in the request. Is there any way I can grab this information?

the client cookie header is "set" before any module phase, as Apache parses
the incoming headers.  you can grab it with:
$r->headers_in->get('Cookie')

-Doug

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic