Backend testing · Audit log
Old session still works after the password was changed
P1 · CriticalExperiencedAudit log
Want to find it yourself first? This page gives away the answer. Play this bug on a fake app screen and see if you can spot it in three tries.
The clue
What should happen to old sessions after a password change?
Steps to reproduce
- Sign in on two devices
- Change the password on one
- Use the other device
Expected result
Session s-91 is signed out (401) after the change
Actual result
s-91 still reads /orders with 200 OK
Why it matters
This is a critical (P1) bug. It can lose money, expose private data or stop people from finishing a key task. A bug like this should block a release and be fixed straight away.
Testing tip
Users change passwords when they suspect a break-in. Check every other session is ended right away.
How to find bugs like this
Backend bugs hide behind a screen that looks fine: jobs that run twice, retries that never stop, stale caches, reports that say success when nothing happened. When you test, try these checks:
- Check that each action happens exactly once.
- Look at logs, outboxes and job history, not just the screen.
- Test what happens on a slow network, a retry and a double click.
- Compare cached values with the source of truth.