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

Ed LaFrance interchange-users@interchange.redhat.com
Sun Jun 2 11:03:00 2002


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=sk
>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=26
>7&sort=sku
>
>Page 2 more link:
>scan/MM=52ab747d473e15346aa9856ccad315dc:10:17:10?mv_session_id=ahFpKGUu
>&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=sku
>
>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=89
>&sort=sku
>
>Page 2 more link:
>scan/MM=52ab747d473e15346aa9856ccad315dc:10:19:10?mv_session_id=ahFpKGUu
>&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.

- Ed L.


>

===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================