def set_browser_id
      until cookies[Authie.config.browser_id_cookie_name]
        proposed_browser_id = SecureRandom.uuid
        unless Session.where(:browser_id => proposed_browser_id).exists?
          cookies[Authie.config.browser_id_cookie_name] = {
            :value => proposed_browser_id,
            :expires => 5.years.from_now,
            :httponly => true,
            :secure => @controller.request.ssl?
          }
          # Dispatch an event when the browser ID is set.
          Authie.config.events.dispatch(:set_browser_id, proposed_browser_id)
        end
      end
    end
def set_browser_id
      until cookies[Authie.config.browser_id_cookie_name]
        proposed_browser_id = SecureRandom.uuid
        unless Session.where(:browser_id => proposed_browser_id).exists?
          cookies[Authie.config.browser_id_cookie_name] = {
            :value => proposed_browser_id,
            :expires => 5.years.from_now,
            :httponly => true,
            :secure => @controller.request.ssl?
          }
          # Dispatch an event when the browser ID is set.
          Authie.config.events.dispatch(:set_browser_id, proposed_browser_id)
        end
      end
    end
Set a random browser ID for this browser.