Title: Clear Logout
Author: Ayesh Karunaratne
Published: <strong>Январ 25, 2020</strong>
Last modified: Июл 23, 2023

---

Search plugins

![](https://ps.w.org/clear-logout/assets/banner-772x250.jpg?rev=2237972)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/clear-logout/assets/icon-256x256.png?rev=2237972)

# Clear Logout

 By [Ayesh Karunaratne](https://profiles.wordpress.org/ayeshrajans/)

[Download](https://downloads.wordpress.org/plugin/clear-logout.1.4.zip)

 * [Details](https://tg.wordpress.org/plugins/clear-logout/#description)
 * [Reviews](https://tg.wordpress.org/plugins/clear-logout/#reviews)
 *  [Installation](https://tg.wordpress.org/plugins/clear-logout/#installation)
 * [Development](https://tg.wordpress.org/plugins/clear-logout/#developers)

 [Support](https://wordpress.org/support/plugin/clear-logout/)

## 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.

## FAQ

### 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.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Clear Logout” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Ayesh Karunaratne ](https://profiles.wordpress.org/ayeshrajans/)

[Translate “Clear Logout” into your language.](https://translate.wordpress.org/projects/wp-plugins/clear-logout)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/clear-logout/), check
out the [SVN repository](https://plugins.svn.wordpress.org/clear-logout/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/clear-logout/) by
[RSS](https://plugins.trac.wordpress.org/log/clear-logout/?limit=100&mode=stop_on_copy&format=rss).

## 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

## Meta

 *  Version **1.4**
 *  Last updated ** 3 сол ago**
 *  Active installations **90+**
 *  WordPress version ** 5.1 or higher **
 *  Tested up to **6.3.8**
 *  PHP version ** 7.1 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/clear-logout/)
 * Tags
 * [authentication](https://tg.wordpress.org/plugins/tags/authentication/)[logout](https://tg.wordpress.org/plugins/tags/logout/)
   [password](https://tg.wordpress.org/plugins/tags/password/)[security](https://tg.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://tg.wordpress.org/plugins/clear-logout/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/clear-logout/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/clear-logout/reviews/)

## Contributors

 *   [ Ayesh Karunaratne ](https://profiles.wordpress.org/ayeshrajans/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/clear-logout/)