code: public void expire(String sid, final int maxInactiveInterval) {
          final String sessionId = sessionPrefix + ":" + sid;
          try {
              this.executor.execute(new RedisCallback<Void>() {
                  public Void execute(Jedis jedis) {
                      jedis.expire(sessionId, maxInactiveInterval);
                      return null;
                  }
              });
          } catch (Exception e) {
              log.error("failed to refresh expire time session(key={}) in redis,cause:{}",
                      sessionId, Throwables.getStackTraceAsString(e));
          }
      }
docs: expired session
  @param sid current session id
  @param maxInactiveInterval max life(seconds)