Move session helper methods from SessionsHelper to ApplicationController.