code: @Override
      public boolean set(HttpCookie cookie, byte[] attribValue) {
          if (null == cookie || null == attribValue || 0 == attribValue.length) {
              return false;
          }
  
          // Start parsing the byte array here to set the expiry date
          // For example: 24-Jun-03 16:01:45 GMT is a valid attrib value
          // Using the HttpDateFormat class
          try {
              Date expiryDate = HttpDispatcher.getDateFormatter().parseTime(attribValue);
              long remainingTime = expiryDate.getTime() - HttpDispatcher.getApproxTime();
              if (-1 < remainingTime) {
                  cookie.setMaxAge((int) (remainingTime / 1000L));
              } else {
                  // PK62826 - old date will translate to a 0 max-age (immediate
                  // expiration)
                  cookie.setMaxAge(0);
              }
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Expires/max-age set to " + cookie.getMaxAge());
              }
              return true;
          } catch (ParseException e) {
              // No FFDC required
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Error parsing expires date: " + GenericUtils.getEnglishString(attribValue));
              }
          }
          return false;
      }
docs: /*
  @see
  com.ibm.ws.http.channel.internal.values.CookieData#set(com.ibm.websphere
  .http.HttpCookie, byte[])