Session is now correctly defined