Beispiel #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;
 }
 /**
  * Write session data
  * @link http://php.net/manual/en/sessionhandlerinterface.write.php
  * @param string $session_id The session id.
  * @param string $session_data <p>
  * The encoded session data. This data is the
  * result of the PHP internally encoding
  * the $_SESSION superglobal to a serialized
  * string and passing it as this parameter.
  * Please note sessions use an alternative serialization method.
  * </p>
  * @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 write($session_id, $session_data)
 {
     $this->cookie->set($session_id, $session_data, $this->lifetime);
     return true;
 }