def regenerate(self):
        """Drop the current session and make a new one (with a new id)."""
        sess = cherrypy.serving.session
        sess.regenerate()

        # Grab cookie-relevant tool args
        relevant = 'path', 'path_header', 'name', 'timeout', 'domain', 'secure'
        conf = dict(
            (k, v) for k, v in self._merged_args().items() if k in relevant
        )
        _sessions.set_response_cookie(**conf)
Drop the current session and make a new one (with a new id).
cherrypy/_cptools.py