Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: session and xxxsets

$
0
0
Re: session and xxxsets
FoxInCloud
Re: session and xxxsets
Feb. 22, 2013
09:11 am
3Q00JONU9Show this entire thread in new window
Gratar Image based on email address
From:Tuvia Vinitsky
To:Thierry Nivelet (FoxInCloud)

Not a good idea to use public vars when I have taught them not to and there are thousands of vars. Some are somewhat user dependent in that they are set initially from a param file but can be changed by the user. I need a way to maintain those vars initialized and then changeable based on session. Is that possible?


xxxSets.Init() executes when server starts, not within a given User Session
If MORESTUFF.PRG does nothing user-dependent (it should if you can run it from xxxSets.Init()), you may use PUBLIC variables.

In the Init of our xxxsets class, we call a prg, say MORESTUFF.PRG. In that prg we set a session variable using session.setsessionvar, as we do all over our app. Throughout the MORESTUFF the session var persists, but upon returning to the Init of xxxsets from MORESTUFF the session vars set in MORESTUFF are gone.

We are still in the same session, no? The code in morestuff is thousands of lines and putting it in xxxsets.Init would be a logistical bear.

What is the scoop here?



Viewing all articles
Browse latest Browse all 10393

Trending Articles