Moved session connection to controller constructor