Date:  05/03/2007 01:41:45 PM Msg ID:  003414
From:  Gabriel Badea Thread:  003414
Subject:  public variables
Hi,
I have two foxweb licences and I'm serving two domains from the same server. 
My question is about public variable visibility from requests from one domain to another.
Let me clarify with an example.  I use fw_enter to check if a database connection has been established like so :
If VarType(gnDBConnection) = 'U'
   Public gnDBConnection
   *-- Code for connecting to database
EndIf
I tested after restarting foxweb (configured with 1 channel) with a call to each domain's web site.
After my test I had two connections, one to each SQL Server database.  To me that says that public variables are not shared between domains. 
Is my assumption correct ???
Thanks,
Gabriel