Example #1
0
 /**
  * Çıkış işlemini yapar
  *
  * @return bool
  */
 public function logout()
 {
     $cookie = new Cookie();
     $cookie->delete(static::USER_SESSION);
     $session = new Session();
     $session->delete(static::USER_SESSION);
     return true;
 }
 /**
  * Destroy a session
  * @link http://php.net/manual/en/sessionhandlerinterface.destroy.php
  * @param string $session_id The session ID being destroyed.
  * @return bool <p>
  * The return value (usually TRUE on success, FALSE on failure).
  * Note this value is returned internally to PHP for processing.
  * </p>
  * @since 5.4.0
  */
 public function destroy($session_id)
 {
     $this->cookie->delete($session_id);
     return true;
 }