Static preview. The real server behavior (POST-only, CSRF check, session destroy) lives in index.php and logout.php and runs with php -S localhost:8000. Here the button only switches between two sample screens.

Account

You have been signed out.

You are signed out. Sign in with the sample account to try the logout button.

Sample credentials in the PHP demo: demo / demo-password. Not a real account.

Account

Signed in as Sample Person (sample account).

In the PHP demo, signing out only works through a POST request that carries a valid CSRF token.