示例#1
0
 public static function ClearCookie($sName)
 {
     if (null === \RainLoop\Utils::$Cookies) {
         \RainLoop\Utils::$Cookies = is_array($_COOKIE) ? $_COOKIE : array();
     }
     $sPath = \RainLoop\Utils::$CookieDefaultPath;
     $sPath = $sPath && 0 < \strlen($sPath) ? $sPath : null;
     unset(\RainLoop\Utils::$Cookies[$sName]);
     @\setcookie($sName, '', \time() - 3600 * 24 * 30, $sPath);
 }
示例#2
0
 public static function ClearCookie($sName)
 {
     if (null === \RainLoop\Utils::$Cookies) {
         \RainLoop\Utils::$Cookies = is_array($_COOKIE) ? $_COOKIE : array();
     }
     unset(\RainLoop\Utils::$Cookies[$sName]);
     @\setcookie($sName, '', \time() - 3600 * 24 * 30);
 }