NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on May 12, 2020, 04:38:57 PM

Title: Session variables, local vs global
Post by: Alberto on May 12, 2020, 04:38:57 PM
Hi, one thing that is uncomfortable is to remember the name of the session variables.
What if, instead of use local variables, which you can see only in the proc where they belong we define it as global variables, that way the are allways there for all procs.
Any problem with this?
Title: Re: Session variables, local vs global
Post by: Bruce on May 13, 2020, 12:37:51 AM
It's probably not a great idea. the variables are sometimes used to hold the actual values, and globals may cause a problem there.
I guess THREADed globals may be ok....

cheers
Bruce