'Find session IDs in the URI and store them in the KB.'

def analyze_uri(self, request, response):

    request_uri = request.get_uri()
    if (self._has_sessid(request_uri) and (response.get_url() not in self._already_reported)):
        self._already_reported.add(response.get_url())
        desc = 'The    URL    "%s"    contains    a    session    id    which    could    be    leaked    to    third    party    domains    through    the    referrer    header.'
        desc = (desc % request_uri)
        i = Info('Session    ID    in    URL', desc, response.id, self.get_name())
        i.set_uri(response.get_uri())
        self.kb_append(self, 'url_session', i)
