Synchronize cookie timeout & session timeout.