note 103629 modified in function.setcookie by danbrown

From: Date: Sun, 24 Apr 2011 19:57:07 +0000
Subject: note 103629 modified in function.setcookie by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179113@lists.php.net to get a copy of this message
My 2 functions to use "live cookies": <?php function SetCookieLive($name, $value='', $expire = 0, $path = '', $domain='', $secure=false, $httponly=false) { $_COOKIE[$name] = $value; return setcookie($name, $value, $expire, $path, $domain, $secure, $httponly); } function RemoveCookieLive($name) { unset($_COOKIE[$name]); return setcookie($name, NULL, -1); } ?> --was-- My 2 functions to use "live cookies": function SetCookieLive($name, $value='', $expire = 0, $path = '', $domain='', $secure=false, $httponly=false) { $_COOKIE[$name] = $value; return setcookie($name, $value, $expire, $path, $domain, $secure, $httponly); } function RemoveCookieLive($name) { unset($_COOKIE[$name]); return setcookie($name, NULL, -1); }< http://php.net/manual/en/function.setcookie.php

« previous php.notes (#179113) next »