diff --git a/src/main/java/com/iemr/common/utils/CookieUtil.java b/src/main/java/com/iemr/common/utils/CookieUtil.java index 12da4137..92c071c5 100644 --- a/src/main/java/com/iemr/common/utils/CookieUtil.java +++ b/src/main/java/com/iemr/common/utils/CookieUtil.java @@ -35,8 +35,8 @@ public void addJwtTokenToCookie(String Jwttoken, HttpServletResponse response, H // Make the cookie HttpOnly to prevent JavaScript access for security cookie.setHttpOnly(true); - // Set the Max-Age (expiry time) in seconds (1 day) - cookie.setMaxAge(60 * 60 * 24); // 1 day expiration + // Set the Max-Age (expiry time) in seconds (8 hours) + cookie.setMaxAge(60 * 60 * 8); // 8 hours expiration // Set the path to "/" so the cookie is available across the entire application cookie.setPath("/"); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 886eb969..d57801bd 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -170,7 +170,7 @@ quality-Audit-PageSize=5 failedLoginAttempt=5 #Jwt Token configuration -jwt.access.expiration=86400000 +jwt.access.expiration=28800000 jwt.refresh.expiration=604800000 # local env