delete() public static method

删除某个Cookie值
public static delete ( string $name ) : void
$name string 要删除的cookie的名称
return void
示例#1
0
文件: Acl.php 项目: linhecheng/cmlphp
 /**
  * 登出
  *
  */
 public static function logout()
 {
     $user = Acl::getLoginInfo();
     $user && Model::getInstance()->cache()->delete("SSOSingleSignOn" . $user['id']);
     Cookie::delete(Config::get('userauthid'));
 }
示例#2
0
文件: Acl.php 项目: im286er/cmlphp
 /**
  * 登出
  *
  */
 public static function logout()
 {
     Cookie::delete(Config::get('userauthid'));
 }