In my project, when a user loggin, I set all the user variables inside a Session variable, so that they are accessible from any part of the Server code:
Code: Select all
session.setProperty ("user_var", userVar);
While the user plays in a 1 vs 1 game, if he accidentally disconnects, or loses the connection, the server shows the error NullReference on this variable.
Does anyone know how to solve this problem?