From 4340133b77745c959bf95d6b7e3ad367bfcae501 Mon Sep 17 00:00:00 2001 From: lprimak Date: Tue, 19 Dec 2023 18:24:24 -0600 Subject: [PATCH] enh: remove workaround for https://github.com/jetty/jetty.project/issues/8556 --- .../shiro/ee/filters/FormResubmitSupportCookies.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupportCookies.java b/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupportCookies.java index 6a77c6e3f8..3139cfeb80 100644 --- a/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupportCookies.java +++ b/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupportCookies.java @@ -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(); } }