Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP
Request object API change request
 

Index | Next | Previous | View Flat


Niels.van.Dijke at eu

Jul 25, 2007, 4:12 AM


Views: 2617
Permalink
Request object API change request

All,

Can we have the following code added to Apache::ASP $Request object?
This will allow you to add Cookie based user name logging to Apache's
access log.

# Set a username (will end up in Apache access log)
$Request->user($Session->{user});

# Get username registered so far
my $user = $Request->user();

The method subroutine of the $Request object would be something like:

sub user {
my $user = shift;
# $this->{r} is Apache request object
$this->{r}->$Response->{r}->user($user) if (defined $user);
return $this->{r}->$Response->{r}->user($user);
}

Regard,
Niels



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe[at]perl.apache.org
For additional commands, e-mail: asp-help[at]perl.apache.org

Subject User Time
Request object API change request Niels.van.Dijke at eu Jul 25, 2007, 4:12 AM
    Re: Request object API change request Niels.van.Dijke at eu Jul 25, 2007, 4:23 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.