Commit 59e1a071dd2d243fff8acffa1cbe4e08c5209bef
Exists in
master
Merge branch 'master' into custom_context
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 | } |