public function gestionar() { session_start(); if (!parent::canAccess($_SESSION['name'])) { header('location:error.php'); exit; } }