Permalink
Browse files

WildFly agressively caches ajax security constraint hit in session.

  • Loading branch information...
1 parent d820b0f commit c9726022f881a143fe9cb59f20485c3f528526eb @BalusC BalusC committed Mar 7, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/org/omnifaces/context/OmniPartialViewContext.java
@@ -20,6 +20,7 @@
import static org.omnifaces.util.FacesLocal.getRequestAttribute;
import static org.omnifaces.util.FacesLocal.getResponse;
import static org.omnifaces.util.FacesLocal.getViewId;
+import static org.omnifaces.util.FacesLocal.invalidateSession;
import static org.omnifaces.util.FacesLocal.normalizeViewId;
import static org.omnifaces.util.Servlets.facesRedirect;
@@ -121,6 +122,7 @@ public void processPartial(PhaseId phaseId) {
if (originalURL != null) {
try {
+ invalidateSession(facesContext);
facesRedirect(getRequest(facesContext), getResponse(facesContext), originalURL);
}
catch (IOException e) {

0 comments on commit c972602

Please sign in to comment.