Remove Cookies, from Array


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function remove_cookies($cookie = array()) {
  2. if (is_array($cookie)) {
  3. foreach ($cookie as $value) { setcookie($value, "", time() - 60 * 60); }
  4. } else {
  5. setcookie($cookie, "", time() - 60 * 60);
  6. }
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.