[ic] Opening multiple browsers, more paging does not function correctly inside query

Ron Phipps interchange-users@interchange.redhat.com
Sun Jun 2 12:46:01 2002


> From: Ed LaFrance
> 
> At 11:05 PM 6/1/2002 -0700, you wrote:
> >Hello,
> >
> >I'm working on a results page which contains a [query] section with
> >match limit set to 10.  If I open one browser and visit this page the
> >paging works correctly and I can switch from page to page.  However
in
> >this scenario the paging breaks and the results are incorrect:
> >
> >1. Open one browser (browser A) to the results page with one
parameter
> >and return more then 10 results. (Let's use Cat Food for an example).
> >
> >Url:
>
>product_group_results?mv_session_id=ahFpKGUu&mv_pc=341&pg_id=267&sort=s
k
> >u
> >
> >Page 1 more link:
>
>scan/MM=52ab747d473e15346aa9856ccad315dc:0:9:10?mv_session_id=ahFpKGUu&
m
>
>v_pc=1056&mv_more_ip=1&mv_nextpage=product_group_results&pf=sql&pg_id=2
6
> >7&sort=sku
> >
> >Page 2 more link:
>
>scan/MM=52ab747d473e15346aa9856ccad315dc:10:17:10?mv_session_id=ahFpKGU
u
>
>&mv_pc=1036&mv_more_ip=1&mv_nextpage=product_group_results&pf=sql&pg_id
=
> >267&sort=sku
> >
> >2. Open another browser (browser B) to the results page with a
different
> >parameter and return more then 10 results. (Let's use Dog Food for an
> >example).
> >
> >Url:
>
>product_group_results?mv_session_id=ahFpKGUu&mv_pc=775&pg_id=89&sort=sk
u
> >
> >Page 1 more link:
>
>scan/MM=52ab747d473e15346aa9856ccad315dc:0:9:10?mv_session_id=ahFpKGUu&
m
>
>v_pc=1163&mv_more_ip=1&mv_nextpage=product_group_results&pf=sql&pg_id=8
9
> >&sort=sku
> >
> >Page 2 more link:
>
>scan/MM=52ab747d473e15346aa9856ccad315dc:10:19:10?mv_session_id=ahFpKGU
u
>
>&mv_pc=1138&mv_more_ip=1&mv_nextpage=product_group_results&pf=sql&pg_id
=
> >89&sort=sku
> >
> >3. Go to browser A and click on the next page and the results for
> >browser B's second page will be shown.
> >
> >It's as though the more links point to the resultset for the last
search
> >made instead of the search being viewed even though the url's are
> >different.  Any ideas of what can cause this scenario?  Is there any
> >debugging tips for a situation like this?
> >
> >Below is the relevant part of my code (with html snipped):
> >[snip]
> 
> This has nothing to do with your search code an everything to do with
> browsers, I think. You can see in your links above that both windows
have
> the same session ID. To IC, this makes them appear as one window. The
last
> thing that window B does sets values to be consulted for the next
action
> of
> window A and visa-versa. If you want them to behave separately, they
need
> separate session ID's. This should be a simple as a) turning off all
> cookie
> support in your browser, or b) opening your new window by launching a
> second instance of your browser application instead of selecting 'new
> window' from the file menu of the first instance.
> 

Thanks Ed, that makes sense.  I guess I assumed that since a page can
handle multiple in page searches that IC had a way to distinguish
between different queries in the same session and that one query would
not invalidate the other query.

I know that when I browse sites I like to open up multiple windows and
do multiple things.  I'm a bit scattered when I browse a site ;)  I'll
keep looking for a way to implement this madness without turning off
cookies.

Thanks!
-Ron