'This is called from the (modified) txws websocket library when
the ws handshake and validation has completed fully.'

def validationMade(self):

    try:
        self.csessid = self.transport.location.split('?', 1)[1]
    except IndexError:
        self.csessid = None
    if self.csessid:
        csession = _CLIENT_SESSIONS(session_key=self.csessid)
        uid = (csession and csession.get('logged_in', False))
        if uid:
            self.uid = uid
            self.logged_in = True
    self.transport.setTcpKeepAlive(1)
    self.sessionhandler.connect(self)
