Remove some unneeded session setting code in application.