[Pmwiki-users] programming question: window id

J. Meijer commentgg
Tue Jul 6 17:42:49 CDT 2004


I would like to maintain a history of viewed pages. Embedding this in the
url gets too unwieldy. Using a session mixes things up when multiple windows
are open, each assessing it if it were their own. The solution it seems is
to use a session and to embed a history for the current window alone,
similar to this:

  session[userwindow][pagehistory]

instead of the normal

  session[pagehistory]

The key is to get hold of some unique identifier of the browser window. Is
there something available in the superglobals? Or do I need to extract it at
the client with JavaScript? Would it be possible to also get the id of the
window the current was forked from, so its history can be passed on?

Help much appreciated; I'll share the final code :-)

-jm







More information about the pmwiki-users mailing list