public static function tiempo()
 {
     if (!Session::get('tiempo') || !defined('APP_SESSION_TIME')) {
         throw new Exception('No se ha definido el tiempo de sesion');
     }
     if (APP_SESSION_TIME == 0) {
         return;
     }
     if (time() - Session::get('tiempo') > APP_SESSION_TIME * 60) {
         Session::destroy(Controller::destroyArray());
         header('Location: ' . BASE_URL . 'error/access/8080');
     } else {
         Session::set('tiempo', time());
     }
 }