Much better to go with a more RESTful approach - the URL is the identifier
for the page and you don't want that identifier to represent the wrong page,
e.g. if example.com/login sometimes returns the home page and sometimes
returns some other page (assuming you can login from and return to multiple
I've struggled with wanting to use globals too, but it's not the functional
way. Our current approach is to create a parallel request object and pass
that through all of the function calls. We set a member of the parallel
request object to the actual Apache request object. Something like this:
We use the notes table to put a reference to the session (and thus the user)
in the access log.
$request->notes->set('session' => $session->{SESSION});
This is in apache2.conf:
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %{session}n" combined_with_session
Thi
Is that rewrite rule (~line 101) turning everything into an index.php?
Sent from my gPhone
On Jan 13, 2010 11:02 AM, "Perrin Harkins" wrote:
On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe
wrote:
> I tried stripping everything out as suggested and ended up with only the >
basic httpd.conf and
Paul Silevitch wrote:
> Also, requests that go through a proxy can appear to come from different IP
> addresses from hit to hit (or visit to visit). Usually, proxies will put
> the real IP as the first IP in the X-Forwarded-For header.
>
> HTH,
>
> Paul
>
>
> On Mon, Oc
r rotation of the session identity.
On Sun, Oct 11, 2009 at 10:19 AM, Randal L. Schwartz
wrote:
> >>>>> "Douglas" == Douglas Sims writes:
>
> Douglas> I've tried to follow the philosophy that Randal Schwartz described
> in
> Douglas> a recent
Instead, create a note that gets
> set on every request in your handler and log that:
>
> %...{Foobar}n The contents of note Foobar from another module.
>
> HTH,
>
> Paul
>
>
>
> On Fri, Oct 2, 2009 at 2:21 AM, Douglas Sims wrote:
>
>>
>> We'v
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:
http://perl.apa
I'm curious... what is the hardware like on the one server? How many CPUs
and RAM?
Also, a few thoughts...
- You do a 301 from algebra.com to www.algebra.com. That doesn't take much
work from the server, but why not just serve up everything from the original
location?
- The algebra problem I j
I'm confused about something and I wonder if anyone can help me to
understand what's going on. The code shown below works fine but as I was
looking over this before changing something else I realized that it probably
shouldn't. I'm using an Apache2::Request object to return a connection
object to
11 matches
Mail list logo