Field access restriction inquiry
-
We use the S2S script to check whether the player's session is valid based on the sessionId and profileId sent from the client.
GetSessionForSessionIdAndProfileId
We use this function, and when accessing the returned field,
the isLoggedOut field, we receive a Java access restriction error.
We use this function closely in an S2S environment and check the session for every API call, so we need to use this field to determine whether the session has been invalidated (logged out, etc.).
If there is no problem, please allow access to that field.
-
Yes, this is a known limitation. Due to backend security applied, Rhino can no longer directly access Java classes. Currently, our backend does not convert Java Boolean objects into primitive values before passing them to Rhino.
I’ll forward this to our development team to see what improvements we can make on our side.
-
hi. @JasonL
Thank you for your reply.
I thought it was a JavaScript object, so I used Object.Assign({}, session), JSON.Parse(JSON.stringify(session)).
I tried to copy the object and use it, but since it's a reference to a Java object, it didn't work as intended.
Please help me retrieve the necessary data.