Sessions and sign-in lockout: the rules
For: product owners, BAs and business admins. The rule: a sign-in lasts while it is used and can be taken back. Signing out, a password change or an administrator ends it at once, on every device it reaches, and repeated wrong passwords stop a name for a while.
Until October 2026 a sign-in was one long-lived pass kept in the browser. Signing out only forgot it in that tab, nobody could end it from elsewhere, and a copy of it worked until it ran out. Wrong passwords were not counted, so a password could be guessed without limit. B2 puts each sign-in on the server, as a session that can be ended, and limits wrong passwords.

The rules
- A sign-in is a session. Each browser that signs in gets its own. Signing in on a new device does not sign the others out.
- A session stays open while it is used.
- It ends after 14 hours without use, so a till left overnight is signed out.
- It ends 7 days after sign-in however busy, and the person signs in again.
- Closing a tab does not sign out. Closing the browser does, unless Remember me was ticked.
- People can see and end their own sessions. The profile lists each device and address they are signed in from, with Sign out for one and Sign out other devices for the rest.
- These end a session at once, on the next action, not at some later expiry:
- signing out;
- changing the password (other devices) or resetting it (every device);
- the account being switched off or deleted;
- an administrator using Sign out everywhere;
- the role now needing two-step sign-in, for a session signed in with the password only.
- A copied session ends itself. If an old session cookie is used after a newer one, the server takes it as stolen, ends the session and records it in the activity log.
- Five wrong passwords lock the name.
- The lock lasts 15 minutes. Each further lock in a row doubles it, up to a day.
- A right password ends the count. A day without a wrong password forgets it.
- Devices already signed in stay signed in.
- A name that does not exist locks the same way, so the lock tells a guesser nothing.
- An administrator can unlock it; a password reset clears it too.
- One network gets 20 failed sign-ins in 15 minutes, across all names. Then it waits.
- Tries sent all at once count the same as tries sent one by one.
- Every lock, unlock, forced sign-out and copied session is recorded in the activity log (Audit log: what is recorded and why it can be trusted).
What changed for shops
| Before | After |
|---|---|
| Signing out forgot the sign-in in that tab only | Signing out ends it on the server |
| Nobody could end a sign-in on another device | The user and an administrator can |
| A changed password left old sign-ins working | They end |
| A switched-off account kept working until its pass ran out | It stops on its next action |
| A copied pass worked for its full life | A copied session cookie ends the session; a copied access pass lasts at most 15 minutes |
| Unlimited password guesses | 5 per name, 20 per network |
| Closing the tab signed out | Closing the tab does not; closing the browser does unless Remember me was ticked |
Decisions
| Date | Decision | Reason |
|---|---|---|
| 2026-10-06 | 15-minute access pass, renewed by a cookie script cannot read | A pass that can be stolen from the page lasts minutes, and the renewal cannot be stolen by script |
| 2026-10-06 | 14 hours idle, 7 days at most | A shop day fits in 14 hours; a week bounds a forgotten device |
| 2026-10-06 | 5 wrong passwords lock the name, doubling to a day | Stops guessing at one account; a real user waits minutes, not hours |
| 2026-10-06 | 20 failures per network per 15 minutes | Stops guessing across many names from one place without stopping a busy shop |
| 2026-10-06 | Unknown names lock like real ones | A lock must not reveal which names exist |
| 2026-10-08 | Every user signs in again once, at the release | Old passes cannot be tied to a session |
| 2026-10-23 | Tries sent at once count while they are being checked | Fifty guesses sent together got fifty checks before any was counted |
Open questions
| Question | Why it matters | Options |
|---|---|---|
| Should anyone who knows a name be able to lock it? | Five wrong passwords, from anyone, keep its owner from signing in for up to a day. Devices already signed in are not affected | Accept: a lock is short and an admin can unlock; or lock per name and network, so others' guesses don't lock the owner out; or let a right password plus two-step through the lock |
| Should the network limit hold across servers? | It is counted on each server, so a shop served by two servers gets 20 on each | Accept while there is one server; or move the count to the database |
Related pages
- Security architecture: layers and features
- Sign-ins and lockouts: admin guide: unlocking and signing people out
- Sessions and sign-in lockout: technical design: how it works
- Runbook: release checks for the security release: what to check at release
- Runbook: locked out and signed out: messages users see
No comments to display
No comments to display