Dartanlla / OWS

Open World Server system
MIT License
362 stars 340 forks source link

fix: Variable UserSessionGUID is being generated but not being stored. #60

Closed murataka closed 2 years ago

murataka commented 2 years ago

The session Id should be kept only on single variable , and when generated , be stored at that address until logout.

Dartanlla commented 2 years ago

You are storing a player specific UserSessionGUID in the Server GameMode that is shared across all users. This will only store the last player who connected. The correct code is on line 249 where we put the UserSessionGUID in the player specific PlayerState.

murataka commented 2 years ago

That generated Guid was also being stored in database table usersessions after logging in.