Re: Changing browser URL based on condition

2011-07-11 Thread Douglas Sims
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

Re: request length global variable

2010-04-23 Thread Douglas Sims
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:

[no subject]

2010-04-23 Thread Douglas Sims

Re: Usefulness of $r-notes and $r-pnotes (or $c)

2010-03-24 Thread Douglas Sims
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

Re: SetHandler perl-script not working

2010-01-13 Thread Douglas Sims
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

Re: adding session id to entries in access log

2009-10-12 Thread Douglas Sims
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

Re: adding session id to entries in access log

2009-10-12 Thread Douglas Sims
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

Re: adding session id to entries in access log

2009-10-12 Thread Douglas Sims
- 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

adding session id to entries in access log

2009-10-02 Thread Douglas Sims
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:

Re: Ways to scale a mod_perl site

2009-09-16 Thread Douglas Sims
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

Confusion over Apache2::Request and Apache2::RequestRec

2009-08-20 Thread Douglas Sims
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