general assembly in session the united nations was founded following the second world war , after the previous failure of the league of nations , which had been conceived at the end of the first world war .