diff --git a/primefaces-webapp/src/main/java/com/mycompany/controller/LoginController.java b/primefaces-webapp/src/main/java/com/mycompany/controller/LoginController.java index 9da76c6..1aeb0c9 100644 --- a/primefaces-webapp/src/main/java/com/mycompany/controller/LoginController.java +++ b/primefaces-webapp/src/main/java/com/mycompany/controller/LoginController.java @@ -109,11 +109,13 @@ public String loginMobile() { } public String logout() { + activeUsers.remove(getLoggedInUser()); FacesContext.getCurrentInstance().getExternalContext().invalidateSession(); return "login"; } public String logoutMobile() { + activeUsers.remove(getLoggedInUser()); FacesContext.getCurrentInstance().getExternalContext().invalidateSession(); return "pm:main?reverse=true"; } diff --git a/primefaces-webapp/src/main/webapp/mobile/index.xhtml b/primefaces-webapp/src/main/webapp/mobile/index.xhtml index 35fcf7a..bc5edbb 100644 --- a/primefaces-webapp/src/main/webapp/mobile/index.xhtml +++ b/primefaces-webapp/src/main/webapp/mobile/index.xhtml @@ -17,7 +17,7 @@ - +