Add ability to configure session by passing session configuration during initialization