Logout Clear Cookies is an extremely simple plugin (one line of code!) that deletes all domain cookies when a user logs out of your WordPress site, and then redirects the user to the site homepage. Because leaving a trail of cookies behind you is bad.
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 visits your site using a public or shared computer, now there won’t be any 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.)
Requirements: Should work on any recent WordPress (3.0+). I’ve been testing it for the past two years and haven’t encountered any incompatibilities.
- Download, unzip and upload into your plugins directory. (Or, install through the plugins menu in WordPress.)
- That’s it! There’s no settings screen or anything to configure.
FAQ and Support
See the changelog to see what’s new. Version 0.1 was released on March 14, 2017.