pentesting, updated
Testing for logout functionality
Confirm logout actually invalidates the session server-side, not just clears the client-side cookie.
Goal
Verify the session token is dead server-side immediately after logout.
How to test
Capture the session token, log out, then replay the token directly:
curl -s https://example.com/account -H "Cookie: session=<captured-before-logout>"
What to look for
The old token still works after logout — the server only cleared the client’s cookie, not its own session store.
References
- OWASP WSTG-SESS-06 — Testing for Logout Functionality.