Sessions

Refactored and removed some old code in the Sessions controller.