PDA

View Full Version : [Solved] User variable cleaned up after user logs out?



chengen
01-29-2012, 04:10 AM
Hello, Teresa,

This is probably in the document somewhere but asking you is so easy. :)
If we define some user variables and user server variables, do they get cleaned up when user logs out? In other words, if user logs out and log back in, are those variables from previous session still there?
Thank you.

Jesse

tcarr
01-29-2012, 02:39 PM
User variables and user server variables are scoped to the user. They are available in a LogoutEventHandler if you need to persist the information to a database, but after that point they are lost. If we let them stay, they would rapidly become a very nasty memory leak and many games that have less than 1K ccu have hundreds of thousands of people who play the game.

chengen
01-29-2012, 11:28 PM
Thank you, Teresa.
That is the behavior we expected and can live with. It is nice to know they are available in LogoutEventHandler if we need it.