testing for sesssion started