Fixed session setting callback with intermediate route.