Imagine the scenario, you have a "register wizard" containing multiple forms in separate html pages. When the user cancels any page they go back to the page they started from (as though the widget was a singlepage). Normally I would store the original page in a session variable or have a history session array and use
Code: Select all
history("Location: {$_SESSION['back_page']}"); exit;For the sake of argument on the site you also have several other "wizards" doing the different things, often from a generic menu.
This works fine in a non-tabbed browser environment, but when the user as access to "open link in new browser" you cannot just store a single session variable of where to go back to.
The Design Question I would like to pose consists simply of how to store this information and redirect the user in a meaningful manner.
Possible solution I can think of...
a) Each "wizard" has a separate session variable holding the page it came from. Unfortunately this doesn't work as what happens when the same wizard is opened multiple times from different locations/tabs ?
b) Use Javascript to question the browser history... OK I think but for the sake of argument, javascript is disabled.
Questions:
1) Can anyone else think of other solutions ?
2) Can anyone else think of any other considerations we need to think of during design/coding for users with browser tabs available?
Regards