On Wed, 20 Aug 2003 13:18:12 -0700 (PDT)
Jeff Anderson <[EMAIL PROTECTED]> wrote:
Hi Jeff,
> Here's what i have:
> (httpd.conf)
>
> PerlModule Apache::Template
> TT2Params uri env params
> TT2LoadPerl On
> TT2EvalPerl On
>
> PerlModule Apache::SessionManager
> PerlTransHandler Apache::SessionManager
>
> <Directory
> /data/apache/sites/lerch.unlocalhost.com/html>
The problem is here!
As pod says ('CONFIGURATION->Configuring via httpd.conf' section)
"if you want to control session management by directory, you cannot use
PerlTransHandler, but you must install the module in a phase where the
mapping of URI->filename has been made. Generally Header parsing phase is
a good place".
Try to put:
PerlHeaderParserHandler Apache::SessionManager
inside <Directory> block (and comment PerlTransHandler outside, of course).
Alternatively, you can use LocationMatch directive like:
PerlTransHandler Apache::SessionManager
<LocationMatch "\.html$">
...
</LocationMatch>
Otherwise, if you need both session URI tracking and per-directories session
control configuration, you must put all PerlSetVar directives in httpd.conf
server config context.
> All the error log reports is:
>
> Use of uninitialized value in string eq at
> /usr/lib/perl5/site_perl/5.6.1/Apache/SessionManager.pm
> line 47.
All PerSetVar directives inside <Directory> blocks aren't still visible if you
use PerlTransHandler phase. So, session manager never starts :-).
I hope this can help you and... sorry to ML for this post maybe OT :-)
by
- Enrico
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates