identify cuid in websocket
This commit is contained in:
parent
9a35b269cd
commit
96baa05f1d
1 changed files with 6 additions and 3 deletions
|
|
@ -82,9 +82,12 @@ class WebSocketClient(WebSocketServerProtocol, _BASE_SESSION_CLASS):
|
||||||
logger.log_trace(str(self))
|
logger.log_trace(str(self))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
self.csessid, *browserstr = webarg.split("&", 1)
|
self.csessid, *cargs = webarg.split("&", 2)
|
||||||
if browserstr:
|
if len(cargs) == 1:
|
||||||
self.browserstr = str(browserstr[0])
|
self.browserstr = str(cargs[0])
|
||||||
|
elif len(cargs) == 2:
|
||||||
|
self.cuid = str(cargs[0])
|
||||||
|
self.browserstr = str(cargs[1])
|
||||||
|
|
||||||
if self.csessid:
|
if self.csessid:
|
||||||
return _CLIENT_SESSIONS(session_key=self.csessid)
|
return _CLIENT_SESSIONS(session_key=self.csessid)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue