Skip to content

Commit

Permalink
UIFR-221 - UI Framework Session contains invalidated http session (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Feb 15, 2023
1 parent 8bfdbf6 commit c9a7166
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ public <T> T getAttribute(String name, Class<T> asType) {
return (T) httpSession.getAttribute(name);
}

public void setHttpSession(HttpSession httpSession) {
this.httpSession = httpSession;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public Session ensureSession(HttpSession httpSession) {
}
}
}
session.setHttpSession(httpSession);
return session;
}
}
Expand All @@ -70,10 +71,12 @@ public Session getSession(HttpSession httpSession) {
ret = null;
}

if (ret != null)
if (ret != null) {
ret.setHttpSession(httpSession);
return ret;
else
} else {
return ensureSession(httpSession);
}
}

/**
Expand Down

0 comments on commit c9a7166

Please sign in to comment.