WordPress: Quickly Log out all users [Quick Tip]

Want to kill all sessions instantly? Force all users to log out? Have no time? Do this:

This tutorial on video (29 seconds, no sound):

1. Open wp-config.php and look for the AUTH_KEY section:

2. Get new session tokens (from the official WP page):

Open: https://api.wordpress.org/secret-key/1.1/salt/

Copy these values (Ctrl+C). Each time you reload this page, new random values are generated.

3. Replace the old values on wp-config.php:

4. Save the file and that’s all!

This procedure kills all the sessions instantly. All the logged-in users will be instantly required to log in again.

This doesn’t affect any credentials. All passwords and usernames remain the same.

Close Menu