Session logging  added to support external apps