package io.bitbucket.NombreDeUsuario.jee08.utilities; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; public final class SesionHttp { public static boolean iniciada(HttpServletRequest request) { HttpSession sesion = request.getSession(false); if (sesion == null) { return false; } return true; } public static boolean noIniciada(HttpServletRequest request) { return !iniciada(request); } }