File indexing completed on 2024-12-22 05:33:57

0001 <?php
0002     if (isset($_SERVER['HTTP_COOKIE'])) {
0003       $cookies = explode(';', $_SERVER['HTTP_COOKIE']);
0004       $cookie_params = session_get_cookie_params();
0005       foreach($cookies as $cookie) {
0006         $parts = explode('=', $cookie);
0007         $name = trim($parts[0]);
0008         setcookie($name, false, time()-1000, $cookie_params['path'], $_SERVER['HTTP_HOST'], $cookie_params['secure'], true);
0009       }
0010    }