You never have the issue when not specifying the id
and loading said sessions by hand ?
To avoid using the id
here's what could work:
- create an empty session with this in the root's
onCreate
script:
send('127.0.0.1:10000', '/session', globals.env.session)
this session will act like a hub and send the "session" parameter found in the url (like you did with the id)
- set the server's
load
option to that hub session file - in the custom module, catch the outgoing
/session
message and use it to make the client load the session you want.