NetTalk Central

Author Topic: Load user settings from xml safe  (Read 3053 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Load user settings from xml safe
« on: August 16, 2014, 10:57:04 PM »
Hallo,


Now I keep all user settings in a xml file (save/load with xFile)
When user login, load xml into a Global Group unthreaded  then copy from group to session variables.
Can this go wrong some how?!?

What is your method in a multi-user application ? 

Thank you for any suggestions!

Robert

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Load user settings from xml safe
« Reply #1 on: August 17, 2014, 09:15:58 PM »
Global unthreaded group could be a problem. I just use a local group to do the same which is in it's own memory scope.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Load user settings from xml safe
« Reply #2 on: August 17, 2014, 10:37:48 PM »
Hi Robert,

load the xml into a global _THREADED_ group, or beeter yet a Local Group, and you should be fine.

cheers
Bruce

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Load user settings from xml safe
« Reply #3 on: August 18, 2014, 04:34:34 AM »
Thank you Kevin and Bruce!
I will move them in a local group.
Robert