NetTalk Central

Author Topic: Session variables, local vs global  (Read 3198 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Session variables, local vs global
« 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?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Session variables, local vs global
« Reply #1 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