'Create a new session which auto expires at cleanup.
@param site: The site on which the session is created.
@type site: L{server.Site}
@return: A newly created session.
@rtype: L{server.Session}'

def getAutoExpiringSession(self, site):

    session = site.makeSession()
    self.addCleanup(session.expire)
    return session
