fork(1) download
  1. <?php
  2. setcookie("mobile", "17635673", time() + (86400 * 30), "/"); // 86400 = 1 day
  3. echo "Cookie '" . $_COOKIE["mobile"] . "' is set!\n";
  4. setcookie("mobile", "", time() - 3600);
  5. echo "cookie is deleted";
  6.  
  7. ?>
Success #stdin #stdout #stderr 0.02s 52472KB
stdin
Standard input is empty
stdout
Cookie '' is set!
cookie is deleted
stderr
PHP Notice:  Undefined index: mobile in /home/Uqo3iv/prog.php on line 3
PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/Uqo3iv/prog.php:3) in /home/Uqo3iv/prog.php on line 4