ticket:265 session should be saved before creating task