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
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
This makes it
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 phark...@gmail.com wrote:
On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe
kevin.tho...@pibenchmark.com wrote:
I tried stripping everything out as suggested and
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 ratsb...@gmail.com wrote:
We've just launched the first mod_perl site I've ever designed. It's all
going very well
identity.
On Sun, Oct 11, 2009 at 10:19 AM, Randal L. Schwartz
mer...@stonehenge.comwrote:
Douglas == Douglas Sims ratsb...@gmail.com writes:
Douglas I've tried to follow the philosophy that Randal Schwartz described
in
Douglas a recent thread here - a cookie is just a serial number
- to trigger rotation of the session identity.
On Sun, Oct 11, 2009 at 10:19 AM, Randal L. Schwartz
mer...@stonehenge.com wrote:
Douglas == Douglas Sims ratsb...@gmail.com writes:
Douglas I've tried to follow the philosophy that Randal Schwartz
described in
Douglas a recent thread here
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:
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
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
11 matches
Mail list logo