@@ -19,7 +19,6 @@ public class CookieValidateResultRepository extends ValidateResultRepositoryBase
1919 static String defaultCookieDomain ;
2020 static int defaultCookieExpiration = 1200 ;
2121 static int defaultIdleExpiration = 180 ;
22- static int defaultDisabledExpiration = 180 ;
2322
2423 static {
2524 loadConfiguration ();
@@ -33,22 +32,19 @@ private static void loadConfiguration()
3332 defaultCookieDomain = props .getProperty ("cookieDomain" , null );
3433 defaultCookieExpiration = Integer .parseInt (props .getProperty ("cookieExpiration" , "1200" ));
3534 defaultIdleExpiration = Integer .parseInt (props .getProperty ("idleExpiration" , "180" ));
36- defaultDisabledExpiration = Integer .parseInt (props .getProperty ("disabledExpiration" , "180" ));
3735 } catch (Exception e ) {
3836 // no need to handle exception
3937 }
4038 }
4139
42- public static void configure (String cookieDomain , Integer cookieExpiration , Integer idleExpiration , Integer disabledExpiration )
40+ public static void configure (String cookieDomain , Integer cookieExpiration , Integer idleExpiration )
4341 {
4442 if (cookieDomain != null )
4543 defaultCookieDomain = cookieDomain ;
4644 if (cookieExpiration != null )
4745 defaultCookieExpiration = cookieExpiration ;
4846 if (idleExpiration != null )
4947 defaultIdleExpiration = idleExpiration ;
50- if (disabledExpiration != null )
51- defaultDisabledExpiration = disabledExpiration ;
5248 }
5349
5450 @ Override
@@ -97,7 +93,7 @@ public IValidateResult getValidationResult(IQueue queue) {
9793 if (!expectedHash .equals (actualHash ))
9894 return null ;
9995
100- if (redirectType != RedirectType .Disabled && redirectType != RedirectType . Idle )
96+ if (redirectType != RedirectType .Idle )
10197 setCookie (queue , queueId , originalUrl , placeInQueue , redirectType , timeStamp , actualHash , null );
10298
10399 return new AcceptedConfirmedResult (
@@ -155,8 +151,6 @@ private void setCookie(
155151
156152 if (expirationTime != null )
157153 expiration = (int )(expirationTime .getTime () - now .getTime ());
158- else if (redirectType == RedirectType .Disabled )
159- expiration = defaultDisabledExpiration ;
160154 else if (redirectType == RedirectType .Idle )
161155 expiration = defaultIdleExpiration ;
162156 else
0 commit comments