generated sessions controller