Session generation working