Tyler MacDonald wrote:
That looks great to me. If getLoggedIn() doesn't have any side
effects (such as setting $r->user), you could also make it a tiny tiny bit
faster by removing the "my $user" line above, and changing this:
Good catch thanks. Brain dead moment.
--
---
Philip M. Gollucci <[EMAIL PROTECTED]> wrote:
> sub handler {
> my $r = shift;
>
> my $user = ISST::User->getLoggedIn($r);
>
> ## IS THIS CORRECT ?
> ## can't used DECLINED or you get the REALM popup
> return Apache2::Const::OK if $r->uri =~
> m#/timeline/(login|logout|r
Hi,
I've setup a AAA using the 3 handlers. I took a small amount from the
mod_perl Cookbook, to figure out how to do it using an HTML form instead
of a REALM popup box.
So the good news is it works.
Here's the config:
### AAA
AuthType Basic
AuthName
You may want to look at Apache2::SubProcess.
Basically you just need to
use POSIX 'setsid'
(thats what Proc::Daemon uses too).
just dont forget to detach stdin/stdout/stderr, and chdir '/' in the
daemonized process to avoid problems.
Enno
On Fri, 6 Jan 2006, Jens Gassmann wrote:
> Hi,
>
> o
Hi,
our CMS create sometimes long runnig tasks. This Tasks we start with the
following code:
`/usr/bin/perl -e 'use Modul; Modul->function($arg);' > /dev/null &`;
This works. Apache returns the html-page and the long running function
goes into the background. But if we restart Apache all ch