set max session