Commit 438591c7f65e75121a60853416f6f4395505d7cd
Exists in
master
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/SecurityObserver.java
@@ -152,7 +152,8 @@ public class SecurityObserver implements Serializable { | @@ -152,7 +152,8 @@ public class SecurityObserver implements Serializable { | ||
152 | 152 | ||
153 | } finally { | 153 | } finally { |
154 | try { | 154 | try { |
155 | - Beans.getReference(HttpSession.class).invalidate(); | 155 | + HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false); |
156 | + session.invalidate(); | ||
156 | } catch (IllegalStateException e) { | 157 | } catch (IllegalStateException e) { |
157 | logger.debug("Esta sessão já foi invalidada."); | 158 | logger.debug("Esta sessão já foi invalidada."); |
158 | } | 159 | } |