Set User Variables Upon Server Side Login
Posted: 18 Sep 2025, 20:39
Hi Lapo,
I am trying to achieve passing extra parameters when user logged in on server side, and do something with these parameters when this user disconnects. I've set up login handler, zone join handler and disconnection handler. I successfully grab the parameter inside login handler. The problem is I tried to set User Variables but the user, by that time, is not ready. That means I got null if I try to get the "User" parameter. Then I tried to do so in zone join handler. Unfortunately, even though the user will be ready then, I lost access to login parameters.
What's your suggestions on this? How can I store user specific data inside join handler and grab it inside disconnection handler? Thank you in advance!
I am trying to achieve passing extra parameters when user logged in on server side, and do something with these parameters when this user disconnects. I've set up login handler, zone join handler and disconnection handler. I successfully grab the parameter inside login handler. The problem is I tried to set User Variables but the user, by that time, is not ready. That means I got null if I try to get the "User" parameter. Then I tried to do so in zone join handler. Unfortunately, even though the user will be ready then, I lost access to login parameters.
What's your suggestions on this? How can I store user specific data inside join handler and grab it inside disconnection handler? Thank you in advance!