diff --git a/WebContent/html/webpages/navbar.jsp b/WebContent/html/webpages/navbar.jsp index b44f3f2..ab4cbb2 100644 --- a/WebContent/html/webpages/navbar.jsp +++ b/WebContent/html/webpages/navbar.jsp @@ -43,8 +43,10 @@ } } } - if(navsso.equals("invalid"))//if we didn't get a cookie, redirect to the homepage to log in again! + if(navsso.equals("invalid")){//if we didn't get a cookie, redirect to the homepage to log in again! response.sendRedirect("../../index.jsp"); + return; + } else{ self = EmployeeQueries.getEmployeeByID(Integer.parseInt(navsso)); navname = self.getName(); diff --git a/WebContent/html/webpages/returnPage.jsp b/WebContent/html/webpages/returnPage.jsp index aa61042..00c03bc 100644 --- a/WebContent/html/webpages/returnPage.jsp +++ b/WebContent/html/webpages/returnPage.jsp @@ -74,11 +74,11 @@ width: 20px; } - +