Encapsulating session creation