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); }
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); }