View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
I have a Foxweb application in which I require some variables to be in scope for the entire lifetime of a session.  The question is, do I use public or session variables?  I intend initialising them in fw_enter if they don't already exist when calling a script.
What are the pros-and-cons of each method?  As far as I can see public variables are easier to program (myPubVar = myValue instead of Session.Setvar('mySessionVar',myValue)), but there must be other differences I have overlooked.
What about scoping?  When the session ends, are global variables destroyed as well as session varibles?
Any help would be appreciated.