Posted By

r3morse on 11/03/09


Tagged

cookies


Versions (?)

Remove Cookies, from Array


 / Published in: PHP
 

  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  

You need to login to post a comment.