Replaced before_filter with before_action in session_controller.rb