yii\web\DbSession::destroySession PHP 메소드

destroySession() 공개 메소드

Do not call this method directly.
public destroySession ( string $id ) : boolean
$id string session ID
리턴 boolean whether session is destroyed successfully
    public function destroySession($id)
    {
        $this->db->createCommand()->delete($this->sessionTable, ['id' => $id])->execute();
        return true;
    }

Usage Example

예제 #1
0
파일: Session.php 프로젝트: Liv1020/cms
 /**
  * Session destroy handler.
  * Do not call this method directly.
  * @param string $id session ID
  * @return boolean whether session is destroyed successfully
  */
 public function destroySession($id)
 {
     if ($this->dbSession) {
         return $this->dbSession->destroySession($id);
     } else {
         parent::destroySession($id);
     }
 }
All Usage Examples Of yii\web\DbSession::destroySession