Commit 59e1a071dd2d243fff8acffa1cbe4e08c5209bef

Authored by Dancovich
2 parents 2a2a9988 438591c7
Exists in master

Merge branch 'master' into custom_context

impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/SecurityObserver.java
... ... @@ -152,7 +152,8 @@ public class SecurityObserver implements Serializable {
152 152  
153 153 } finally {
154 154 try {
155   - Beans.getReference(HttpSession.class).invalidate();
  155 + HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
  156 + session.invalidate();
156 157 } catch (IllegalStateException e) {
157 158 logger.debug("Esta sessão já foi invalidada.");
158 159 }
... ...