Session mechanism is now a trait