Skip to content

Instantly share code, notes, and snippets.

@mahdiyazdani
Created September 28, 2016 15:09
Show Gist options
  • Save mahdiyazdani/c88a3147f974aec2d53fd33385be21aa to your computer and use it in GitHub Desktop.
Save mahdiyazdani/c88a3147f974aec2d53fd33385be21aa to your computer and use it in GitHub Desktop.
Auto-Clear Browser Cookies
<?php
/**
* Add the following code to your wp-config.php file above the “happy blogging” line:
*/
define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment