Basically what I want to do is use Shelve to maintain a log of which
webpage a user is viewing at any given point in time, even when they
are using multiple tabs (though assuming only one browser window is
open at a time).
For example, if a user ran a search on
google.com in one tab (i.e.,
loaded the page at time1), opened one of the results in a second tab
(at t2), switched back to the first tab (at t3), and then clicked on a
different result to open a new page in a third tab (at t4), the log
would read t0:
google.com, t1: ResultPage1.com, t4: ResultPage2.com.
What I am trying to accomplish is to have Shelve treat such tab
changes (e.g., the change from tab 2 back to tab 1 at t3) as if the
user reloaded the page in tab 1. Thus, in this example, the log would
instead read t1:
google.com, t2: ResultPage1.com, t3:
google.com, t4:
ResultPage2.com.
Hopefully my example actually made things clearer. If not, I'm happy
to try again or provide additional details. Thanks very much for the
prompt reply!