NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on August 16, 2014, 10:57:04 PM

Title: Load user settings from xml safe
Post by: Robert Iliuta 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
Title: Re: Load user settings from xml safe
Post by: kevin plummer 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.
Title: Re: Load user settings from xml safe
Post by: Bruce 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
Title: Re: Load user settings from xml safe
Post by: Robert Iliuta on August 18, 2014, 04:34:34 AM
Thank you Kevin and Bruce!
I will move them in a local group.
Robert