Fractionation of a secondary effluent with membrane separation