Losing $r->user between PerlFixupHandler and PerlLogHandler
Losing $r->user between PerlFixupHandler and PerlLogHandler
am 05.06.2008 13:25:17 von Kevin Thorpe
Hi, I have just upgraded from Apache1 to Apache2 and I am now having
problems with logging to my database.
I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie sets
$r->user in the PerlFixupHandler.
However reading $r->user in PerlLogHandler doesn't always return the
user set in the previous handler.
Can anyone shed any light on why the RequestRec is losing the user name?
thanks
Re: Losing $r->user between PerlFixupHandler and PerlLogHandler
am 05.06.2008 14:58:49 von Vegard Vesterheim
On Thu, 5 Jun 2008 12:25:17 +0100 Kevin Thorpe wrote:
> Hi, I have just upgraded from Apache1 to Apache2 and I am now having
> problems with logging to my database.
>
> I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie
> sets $r->user in the PerlFixupHandler.
> However reading $r->user in PerlLogHandler doesn't always return the
> user set in the previous handler.
>
> Can anyone shed any light on why the RequestRec is losing the user name?
I encountered a similar problem some time ago. Have a look at this
thread, maybe your problem is related:
http://marc.info/?l=apache-modperl&m=119996305532711&w=2
- Vegard V -
Re: Losing $r->user between PerlFixupHandler and PerlLogHandler
am 05.06.2008 15:41:40 von Kevin Thorpe
Vegard Vesterheim wrote:
> On Thu, 5 Jun 2008 12:25:17 +0100 Kevin Thorpe wrote:
>
>
>> Hi, I have just upgraded from Apache1 to Apache2 and I am now having
>> problems with logging to my database.
>>
>> I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie
>> sets $r->user in the PerlFixupHandler.
>> However reading $r->user in PerlLogHandler doesn't always return the
>> user set in the previous handler.
>>
>> Can anyone shed any light on why the RequestRec is losing the user name?
>>
>
> I encountered a similar problem some time ago. Have a look at this
> thread, maybe your problem is related:
>
> http://marc.info/?l=apache-modperl&m=119996305532711&w=2
>
>
Nope, $r->main and $r->prev are both empty and $r->is_initial_req == 1
now I'm really baffled
Re: Losing $r->user between PerlFixupHandler and PerlLogHandler
am 05.06.2008 16:21:57 von Kevin Thorpe
--------------030004030306030103040700
Content-Type: text/plain;
charset="US-ASCII";
format="flowed"
Content-Disposition: inline
Kevin Thorpe wrote:
> Hi, I have just upgraded from Apache1 to Apache2 and I am now having
> problems with logging to my database.
>
> I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie
> sets $r->user in the PerlFixupHandler.
> However reading $r->user in PerlLogHandler doesn't always return the
> user set in the previous handler.
>
> Can anyone shed any light on why the RequestRec is losing the user name?
>
> thanks
Ah, found it! mod_php was destroying the contents of $r->user as it was
trying to do authentication itself. Notes
here about the problem....
http://mail-archives.apache.org/mod_mbox/perl-modperl/200401 .mbox/%3C1073863230.2635.19.camel@patience%3E
--------------030004030306030103040700
Content-Type: text/html;
charset="ISO-8859-1"
Content-Disposition: inline
Kevin Thorpe wrote:
Hi, I
have just upgraded from Apache1 to Apache2 and I am now having problems
with logging to my database.
I am using AuthCookie and AuthCookieDBI for logging in. AuthCookie sets
$r->user in the PerlFixupHandler.
However reading $r->user in PerlLogHandler doesn't always return the
user set in the previous handler.
Can anyone shed any light on why the RequestRec is losing the user
name?
thanks
Ah, found it! mod_php was destroying the contents of $r->user as it
was trying to do authentication itself. Notes
here about the problem....
face="Helvetica, Arial, sans-serif">
--------------030004030306030103040700--