javascript - Browser Tab/Window tracking pattern? -


Is there an accepted pattern for tracking that a page is being loaded from a tab / tab window?

Certain processes (such as the processes offered), which can greatly benefit from the ability to confirm that the same tab is asking for execution. For example, there are places where (between us) we store intermediate data in the memacka, but it can cause a problem without the problem that, unlike the data this process, If the user opens another tab / window on the same process.

<

Div category = "post-text "Itemprop =" text ">

If you use the query parameter (if you use GET requests) or the hidden field (if you use POST requests) or both, the status of the multi-step process (If you post-redirection, allow the user to refresh, open your browser).

If you maintain a position on the server (eg in DB or Memcatch) you can place a query parameter or a "transaction key" in the hidden area.

Be careful, though - in my experience, it is quite possible to design such a state-level multi-level process, but it is difficult to implement and maintain this non-stunning user experience. It is possible. For example, what happens when you move between steps? You can explicitly allow it, or the user can use the back button, but the process should still be understood.

Edit:

As a solid example

  1. On the "Start multi-step process"
  2. The server then starts the
    • state for a process
    • gives it a unique key "A"
    • / Li>
    • Keeps it in the temporary store (like a memcatch is done)
    • Redirects the user to "/ process / A / phase / 1"
    • Process Next step for
    • User, in a separate tab, click "Start
    • Uses a unique key" B "
    • " / Process / A / Phase / 2 "
    • The next step for this second process will be "/ process / b / step / 2"
    • / Li>
    • Two processes now have independent server-side state

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -