Checking session configuration in a dispatch_once block