PHP Session Hijacking Lab
Controlled lab only. This plugin uses a PHP session as the lab authentication state so students can observe session-ID behavior.
This is a separate training mechanism. It does not log the browser into WordPress’s normal wp-admin/account session.
1. Lab Login
3. Controlled Exercise
- Use two isolated browser profiles, A and B.
- In A, log in and record the PHPSESSID shown above.
- In B, set its
PHPSESSIDcookie to the existing session ID from A. - Reload the lab page in B.
- In vulnerable mode, the server should load the same server-side session and therefore display the same lab profile.
- In secure mode, authentication rotates the session ID, so the old identifier no longer represents the newly authenticated session.
Important: use browser developer tools to inspect the PHPSESSID cookie. The lab intentionally does not display the session ID in the page UI.