adding session id to entries in access log

2009-10-02 Thread Douglas Sims
We've just launched the first mod_perl site I've ever designed. It's all going very well so far but I'm sure there are some things worth improving. I wonder if anyone might have suggestions about this scenario: I want to add the session id to the access log entries. This example:

[MP2][SESSION::POSTGRES] Problems retrieving session data.

2009-10-02 Thread Sam Ingarfield
Hello; I'm having some curious problems with sessions in my scripts. I am using the Apache::Session::Postgres module. Mod_Perl 2 on Apache 2, on Debian (Lenny). Sessions are being tracked using cookies. I am setting session data using code of the following form:  73 my $r =

Re: adding session id to entries in access log

2009-10-02 Thread Cosimo Streppone
Douglas wrote: I want to add the session id to the access log entries. We just added %{session_id}C as an additional field to our CustomLog directive, and that worked fine for us. http://httpd.apache.org/docs/2.0/mod/mod_log_config.html -- Cosimo

Threading inside a handler script

2009-10-02 Thread Aku Kauste
Hello, The problem I'm trying to solve is that a page request will have to look for data from two sources: local external. What I would like to do is put the external lookup (which is slow) in it's own thread and do the local processing as far as I can while waiting for the external source. Then

Alternatives to Apache::DBI?

2009-10-02 Thread Kurt Hansen
Hello, I'm wondering what techniques folks are using to get persistent database connections other than Apache::DBI. Apache::DBI has worked great, but I've treated it as a black box and so don't fully understand what it is doing in the box. That was fine, but the fact that the current

Re: Alternatives to Apache::DBI?

2009-10-02 Thread Igor Chudov
I run 1.07 on my webserver (algebra.com) and Apache::DBI works great for me. i On Fri, Oct 2, 2009 at 11:30 AM, Kurt Hansen khan...@charityweb.net wrote: Hello, I'm wondering what techniques folks are using to get persistent database connections other than Apache::DBI. Apache::DBI has

Re: Alternatives to Apache::DBI?

2009-10-02 Thread Perrin Harkins
Apache::DBI is fine. You can also use DBI-connect_cached, as long as you are careful to avoid making any database connections during server startup and install your own cleanup handler to issue a rollback on all open database handles at the end of every web request. The Apache::DBI code is very

Re: double mod_perl initialization

2009-10-02 Thread Jonathan Swartz
On Sep 25, 2009, at 10:48 AM, Clinton Gormley wrote: If I don't ever plan to use graceful restarts, and I believe that smaller restart times are an unqualified Good, is there any reason why I shouldn't ALWAYS use a script like the above? And is there any way to avoid PerlModule modules

Re: double mod_perl initialization

2009-10-02 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 5:54 PM, Jonathan Swartz swa...@pobox.com wrote: Ok, one more question. Disregarding graceful for the moment - is HUP completely reliable with mod_perl at this point, or is there still a reason (as there once supposedly was) to do a full server stop and start? The

Re: double mod_perl initialization

2009-10-02 Thread Jonathan Swartz
On Oct 2, 2009, at 3:25 PM, Perrin Harkins wrote: On Fri, Oct 2, 2009 at 5:54 PM, Jonathan Swartz swa...@pobox.com wrote: Ok, one more question. Disregarding graceful for the moment - is HUP completely reliable with mod_perl at this point, or is there still a reason (as there once

Re: Alternatives to Apache::DBI?

2009-10-02 Thread David E. Wheeler
On Oct 2, 2009, at 9:30 AM, Kurt Hansen wrote: I'm wondering what techniques folks are using to get persistent database connections other than Apache::DBI. I plan to release a new module, DBIx::Connection, on Monday. It's based on the connection caching stuff in DBIx::Class, and also has