/** * Delete all expired sessions from persistent storage. * * @param int $expiration * * @return mixed|void */ public function clean($expiration) { $sth = $this->pdo->prepare("DELETE FROM sessions WHERE last_activity < :expiration"); $sth->bindValue(':expiration', $expiration); $sth->execute(); }
/** * Delete an item from the cache. * * @param string $key * * @return boolean */ public function forget($key) { $sth = $this->pdo->prepare("DELETE FROM pimf_cache WHERE key = :key"); $sth->bindValue(':key', $this->key . $key); return $sth->execute(); }