Session mechanism in the details