modified session controller to remove unused code