# Concurrent Session Policy

> Document how many concurrent sessions an identity may hold, per role, and verify the policy is enforced rather than implied by the product's own UI limits. Use when the product advertises single-session policy, session caps or device limits and you want proof each is server enforced

- Skill: `wsh7ash/concurrent-session-policy` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/concurrent-session-policy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/concurrent-session-policy/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/concurrent-session-policy

---


# Concurrent Session Policy

> Document how many concurrent sessions an identity may hold, per role, and verify the policy is enforced rather than implied by the product's own UI limits

**Use when:** the product advertises single-session policy, session caps or device limits and you want proof each is server enforced

**Avoid when:** no policy exists in the product or its settings and any number of sessions is acceptable by design

## Procedure

1. Read the advertised session policy and record it verbatim, including per-platform and per-role differences if any.
2. Open sessions from multiple distinct sources on your own account and count successes at each threshold.
3. Confirm which session actually remains when the cap is exceeded and which is silently invalidated or replaced.
4. Test suspension by token p ruling: revocation of one session while others stay valid, citing actual HTTP results only.
5. Record guest or device tokens instead of joint session sharing, if that is how the product models concurrency.
6. Compare the changed behaviors against the advertised policy and mark any gap between policy and implementation.

## Signals

- The documented limit of one session can still be exceeded when the client plays with the device-id header.
- Session invalidation misses one surface, so the world of synchronized sign-out exists only partially.
- Concurrency policy enforced normally is different for a paid plan or staff account, which products forget to wire up.
- Refresh flows create additional sessions invisibly, violating a cap the UI promises to honor.

## Patterns

**1. Cap test**

```text
limit=1 -> login devices 1,2,3: 200, 200, 409-cap-or-401-out limit observed=yes
```

**2. Selective kill**

```text
revoke device 1 -> others remain valid -> per-session revocation honored=yes
```

**3. Result row**

```text
policy=single per-role device-id honored=member-only audit-index=pub-diff=platform-token
```

## Pitfalls

- Testing from a single client identity without per-device isolation, making collisions you cannot trace separately.
- Assuming a cap means shared-state invalidation, when a cap can also mean latest-in wins while older sessions die.
- Publishing limits as facts from the UI without asserting the server's behavior against the exact same call surface.

## Done when

- The advertised per-role cap is reproduced by opening sessions beyond each threshold and observing which are refused.
- Revocation behavior for specific sessions is direct evidence, and the gap between policy and implementation, if any, is documented.

## References

- [OWASP - session management cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)
- [MDN - HTTP cookies and identity](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)

