'Expire/logout of the session.'

def expire(self):

    del self.site.sessions[self.uid]
    for c in self.expireCallbacks:
        c()
    self.expireCallbacks = []
    if (self._expireCall and self._expireCall.active()):
        self._expireCall.cancel()
        self._expireCall = None
