Basics for the session management