Skip to content

Commit

Permalink
enh: remove workaround for jetty/jetty.project#8556
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Dec 20, 2023
1 parent 92ea8f4 commit 4340133
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,7 @@ static int getCookieAge(ServletRequest request, org.apache.shiro.mgt.SecurityMan
if (nativeSessionManager != null) {
return (int) Duration.ofMillis(nativeSessionManager.getGlobalSessionTimeout()).toSeconds();
} else {
try {
return (int) Duration.ofMinutes(request.getServletContext().getSessionTimeout()).toSeconds();
} catch (Throwable e) {
// workaround for https://github.com/eclipse/jetty.project/issues/8556
return (int) Duration.ofHours(1).toSeconds();
}
return (int) Duration.ofMinutes(request.getServletContext().getSessionTimeout()).toSeconds();
}
}

Expand Down

0 comments on commit 4340133

Please sign in to comment.