perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wiles <fr...@wiles.org>
Subject Re: Database transaction across multiple web requests
Date Fri, 31 Mar 2006 19:02:58 GMT
On Fri, 31 Mar 2006 13:43:59 -0500
Perrin Harkins <perrin@elem.com> wrote:

> On Fri, 2006-03-31 at 14:47 +0200, Issac Goldstand wrote:
> >   I also tend to go with this variant of B.  I keep $start_from and
> > $max_results in the session (or the query string).
> 
> Please keep it in the query string!  One of my pet peeves is
> applications that go crazy when I open multiple browser tabs/windows.
> Keeping things like this in the session (which is shared between
> browser windows) gives bizarre results in that situation.

  Agreed!  What I typically do is have: 

  /path/to/page/20 

  Where 20 is the offset and for the next query I just do: 

  $offset += $items_per_page; 

 ---------------------------------
   Frank Wiles <frank@wiles.org>
   http://www.wiles.org
 ---------------------------------


Mime
View raw message