flowchart LR accTitle: Two tabs, two attempts, two destinations accDescr: A sequence between two browser tabs and the shared account. Tab 1 starts a sign-up for service A in the Dutch market with state value a1 and the return address of that service. Tab 2 starts a sign-up for service B in the German market with state value b7 and its own return address. Tab 2 finishes first and returns with b7 to service B in German. Tab 1 finishes later and returns with a1 to service A in Dutch. Each attempt keeps its own state value and an exact, registered return address, and the browser session holds neither. %% ref-signin-tabs (en) %% https://www.thebsq.com/case-studies/shared-sign-in %% n_tab1 — The customer starts a sign-up for service A in the Dutch market. n_tab1["Tab 1: service A, Dutch"] %% n_tab2 — In a second tab the same customer starts a sign-up for service B in the German market. n_tab2["Tab 2: service B, German"] %% n_account — The account runs the shared enrolment once for each attempt and keeps the two attempts apart. n_account["Shared account"] %% n_state — The application checks the value when the customer comes back. It belongs to the attempt and not to the browser session. n_state["State value"] %% n_return — One of a short list registered in advance, compared exactly and never by pattern. n_return["Return address"] n_tab1 -->|"starts an attempt with state a1"| n_account n_tab2 -->|"starts an attempt with state b7"| n_account n_account -->|"returns the state of the attempt"| n_state n_state -->|"selects the registered return address"| n_return n_return -->|"lands on service A in Dutch"| n_tab1 n_return -->|"lands on service B in German"| n_tab2 %% Tab 1 returns to its service — n_tab1 → n_account → n_state → n_return → n_tab1 %% Tab 2 finishes first — n_tab2 → n_account → n_state → n_return → n_tab2