function gc($maxlifetime) { $expire = time() - intval($maxlifetime); $sql = 'DELETE FROM c_session WHERE sess_time < ? AND sess_name = ?'; $params = array($expire, $this->sess_name()); $res =& $this->db->query($sql, $params); if (DB::isError($res)) { return false; } return (bool) $res; }
function db_escapeIdentifier($str) { return OpenPNE_DB::escapeIdentifier($str); }