Logout Clear Cookies

Clears all cookies on logout. Because leaving a trail of cookies is bad.

Author:Joel Hardi (profile at wordpress.org)
WordPress version required:3.7
WordPress version tested:6.4.4
Plugin version:0.2
Added to WordPress repository:07-03-2017
Last updated:08-11-2023
Rating, %:100
Rated by:4
Plugin URI:https://lyncd.com/
Total downloads:7 599
Active installs:600+
plugin download
Click to start download

This is an extremely simple plugin (one line of code!) that deletes all domain cookies whenever a user logs out of your WordPress site, and then redirects the user to the site homepage.

Why? Because by default, WordPress sets a number of cookies that it doesn’t remove on its own when you log out.

There are security and privacy benefits, because if there are vulnerabilities in WordPress or in your browser, or if someone has access to your computer or device, they may be able to access these cookies. (That goes for you or for anyone who logs into your site to add a post or comment.)

Likewise, when a user logs out of your site using a public or shared computer, there won’t be any domain cookies left behind.

The plugin also gives you back the “regular user view” of your site, because after you log out you can browse your site as an anonymous user, without having to manually clear cookies in your browser. (There are many plugins that will display different content or show cached or uncached versions of pages if they see that WordPress cookies have been set.)


FAQ
ChangeLog