generate user sessions controller