+ Reply to Thread
Results 1 to 3 of 3

Thread: User variable cleaned up after user logs out?

  1. #1
    Senior Member
    Join Date
    Feb 2011
    Posts
    234
    Thanks
    67
    Thanked 1 Time in 1 Post

    User variable cleaned up after user logs out?

    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

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,214
    Thanks
    80
    Thanked 1,087 Times in 1,076 Posts
    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.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. The Following User Says Thank You to tcarr For This Useful Post:

    chengen (01-29-2012)

  4. #3
    Senior Member
    Join Date
    Feb 2011
    Posts
    234
    Thanks
    67
    Thanked 1 Time in 1 Post
    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.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts