class ApplicationController < ActionController::Base
  before_action :verify_session

  private

  def verify_session
    return if session[:remote_ip] == request.remote_ip

    reset_session
    session[:remote_ip] = request.remote_ip
  end
end