improved max session duration (used to check initial connect)