'Drop the current session and make a new one (with a new id).'

def regenerate(self):

    sess = cherrypy.serving.session
    sess.regenerate()
    conf = dict([(k, v) for (k, v) in self._merged_args().items() if (k in ('path', 'path_header', 'name', 'timeout', 'domain', 'secure'))])
    _sessions.set_response_cookie(**conf)
