Understanding work procedure of session.