PHPackages                             phpwatch/wordpress-clear-logout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. phpwatch/wordpress-clear-logout

ActiveWordpress-plugin[Authentication &amp; Authorization](/categories/authentication)

phpwatch/wordpress-clear-logout
===============================

A tiny WordPress plugin to clear all browser data related to the site upon logout (With `Clear-Site-Data` header).

v1.4(2y ago)22GPL-2.0-or-laterPHPPHP &gt;=7.1.0

Since Jan 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PHPWatch/WordPress-Clear-Logout)[ Packagist](https://packagist.org/packages/phpwatch/wordpress-clear-logout)[ Docs](https://wordpress.org/plugins/clear-logout/)[ RSS](/packages/phpwatch-wordpress-clear-logout/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

```
=== Clear Logout ===
Contributors: ayeshrajans
Tags: password, security, logout, authentication
Requires at least: 5.1
Tested up to: 6.3
Stable tag: 1.4
Requires PHP: 7.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A tiny WordPress plugin to clear all browser data related to the site upon logout (With `Clear-Site-Data` header).

== Description ==

This plugin ensures that when users of your website (including site administrators), the browsers are instructed to clear all residue such as cookies and caches to enhance the security.

[`Clear-Site-Data` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data) is sent when a user logs out, which supported browsers will react by removing all existing cookies, cache, and other storage. It will **not** remove saved passwords, permissions, adblocker rules, and other data that are supposed to be permanent.

This plugin prevents possible security vulnerabilities such as clicking the "Back" button in the browser after logging out revealing the pages that should not have been accessible after logging out. Furthermore, this cleans the browser cache, which prevents accessing authenticated media assets (such as purchased images) from the browser cache of a victim.

== Installation ==

1. Upload the downloaded plugin directory to `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin from the 'Plugins' screen in WordPress.
3. You are all set! There is nothing to configure. When users logout, the `Clear-Site-Data` header will be sent automatically.

== Frequently Asked Questions ==

= Will this plugin remove saved passwords? =

No. This will clear all cookies associated with your WordPress site, but not the permanent data such as passwords, permissions, etc.

= Which browsers support `Clear-Site-Data` header? =

All mainstream browsers do. Google Chrome 61+, Firefox 63+, and their current mobile browsers. As of now, Microsoft Edge (non-Chrome versions) does NOT support this header.

= Why does the WordPress core does not set this header by itself? =

`Clear-Site-Data` header is a relatively new header. I will be working with WordPress core team to get this into core. Until then, we have this plugin.

== Changelog ==

= 1.0 =
* Initial release.

= 1.1 =
* Update supported up-to version number.

= 1.2 =
* Update supported up-to version number.

= 1.4 =
* Requires PHP 7.1+
* Tested upto WordPress 6.3
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~425 days

Total

4

Last Release

1030d ago

PHP version history (2 changes)v1.0PHP &gt;=5.6.0

v1.4PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1703f88c1f225e3fadff28458e81328f86668d9631a8c489f45ea1aaebe12df2?d=identicon)[Ayesh](/maintainers/Ayesh)

---

Top Contributors

[![Ayesh](https://avatars.githubusercontent.com/u/811553?v=4)](https://github.com/Ayesh "Ayesh (15 commits)")

---

Tags

wordpresswordpress-pluginwordpresssecurityAuthenticationcookieswordpress pluginlogoutwordpress security

### Embed Badge

![Health badge](/badges/phpwatch-wordpress-clear-logout/health.svg)

```
[![Health](https://phpackages.com/badges/phpwatch-wordpress-clear-logout/health.svg)](https://phpackages.com/packages/phpwatch-wordpress-clear-logout)
```

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[lusitanian/oauth

PHP 7.2 oAuth 1/2 Library

1.1k23.2M121](/packages/lusitanian-oauth)[kayue/kayue-wordpress-bundle

Support for authenticating WordPress users in Symfony2.

10125.9k](/packages/kayue-kayue-wordpress-bundle)[itinerisltd/disallow-pwned-passwords

Disallow WordPress and WooCommerce users using pwned passwords.

281.8k](/packages/itinerisltd-disallow-pwned-passwords)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
