Inside my websocket listener methods, the value of
arguments.sessionScope does not point to the same session scope as my current request. Any ideas why the session scope would be out of sync?
I’m testing this by dumping the user’s session scope on the page where I’m testing my websockets. Then from my listener component, I log the session keys along with the sessionid value. The value of
arguments.sessionScope.sessionid looks like it comes from my web context because the prefix is the same as my application.name. (
this.name defined in application.cfc).
The keys found in
[cfid,timecreated,sessionid,urltoken,lastvisit,cftoken], but are missing a few that I create in my
onSessionStart() method of
application.cfc. So it appears that this session was not created in my web context, or passed into my application.onSessionStart() method.