Implementing the session starting