Skip to content

Commit

Permalink
RESTWS-905: Session should be invalidated only if its a valid session (
Browse files Browse the repository at this point in the history
  • Loading branch information
angshu committed Feb 1, 2023
1 parent 9d39bba commit a9f174a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -121,7 +121,7 @@ public void post(HttpServletRequest request, @RequestBody Map<String, String> bo
public void delete(HttpServletRequest request) {
Context.logout();
HttpSession session = request.getSession(false);
if (session != null) {
if (session != null && request.isRequestedSessionIdValid()) {
session.invalidate();
}
}
Expand Down

0 comments on commit a9f174a

Please sign in to comment.