Basic structure of session beginning