def METHOD_NAME(self):
    changemsg = []
    if cherrypy.session.id != cherrypy.session.originalid:
        if cherrypy.session.originalid is None:
            changemsg.append(
                'Created new session because no session id was given.')
        if cherrypy.session.missing:
            changemsg.append(
                'Created new session due to missing '
                '(expired or malicious) session.')
        if cherrypy.session.regenerated:
            changemsg.append('Application generated a new session.')
    try:
        expires = cherrypy.response.cookie['session_id']['expires']
    except KeyError:
        expires = ''
    return METHOD_NAME % {
        'sessionid': cherrypy.session.id,
        'changemsg': '<br>'.join(changemsg),
        'respcookie': cherrypy.response.cookie.output(),
        'reqcookie': cherrypy.request.cookie.output(),
        'sessiondata': list(cherrypy.session.items()),
        'servertime': (
            datetime.utcnow().strftime('%Y/%m/%d %H:%M') + ' UTC'
        ),
        'serverunixtime': calendar.timegm(datetime.utcnow().timetuple()),
        'cpversion': cherrypy.__version__,
        'pyversion': sys.version,
        'expires': expires,
    }