Fix for CAS-1412

Added code to check flowsession for root before setting maxInactiveInterval.