added sessionStatus checking to ajax requests