Date:  04/07/2012 10:50:34 PM Msg ID:  004433
From:  Joe Goldsmiith Thread:  004427
Subject:  Re: FoxWeb and PHP session variables
Spoke too soon but also thanks. Here is more information on the application.
 
When the php script finishes and returns to my FoxWeb page I need to capture the users session variable so I also can update a table that the process was completed. This is for legal reasons.
 
It's hard to describe because of IP privacy issues. But, the process is this (all pages reside on my server):
 
MyFoxWebPage1.fwx --> MyFoxWebPage2.fwx -->PHPPage.php (with iframe) --> MyFoxWebPage3.fwx
 
MyFoxWebPage1.fwx is an introduction page also asking to verify user information. This page also sets Session.SetVar('gID',lID) to start a session ID. If verified the user is taken to...
 
MyFoxWebPage2.fwx that offers specific information associated with IP issues and asks user to attest to agree. IF agreed the user is taken to...
 
PHPPage.php (with iframe) sets up the php environment to issue the iFrame. Within the iFrame a page is called from the vendor's web site for the user to interact. Once completed the vendor's site closes the iFrame and returns to...
 
MyFoxWebPage3.fwx that thanks the user for completing the form. The Fox code also updates the user's record that the process was completed. This is where I need to grab this user's session variable to locate the correct user's record to update.The URL that returns to this page is NOT on the php page. I had to log into my vendor's site and enter the return URL into my profile. This entry instructs the process to return to this page.
 
I hope this more detailed information is helpful. I'd prefer to know a way for MyFoxWebPage3.fwxto pick up the specific user's session variable from the FoxWeb server. If this is possible how would I do it? I tried using sID=Session.GetVar('gID') but is comes back empty
 
Any thoughts would be appreciated.
 
Joe
 
Sent by FoxWeb Support on 04/04/2012 11:18:39 AM:
Do you need the session variable data in your PHP application, or do you simply want it to still be there when you link back to your FoxWeb application? Session variables are saved on the FoxWeb server (rather than on the browser), so they cannot be "passed" to another server, unless you pass the data with a different mechanism, such as the query string or form fields. If the other server is on the same host name or IP address, then you could also use cookies, but it really depends on what you are trying to do.
 
FoxWeb Support Team
support@foxweb.com email
Sent by Joe Goldsmiith on 04/03/2012 08:45:49 PM:
 Hi all.
 
I have a FoxWeb application where I set a session variable such as Session.SetVar('gVID',M.vID) in an fwx page. This page then redirects to a php page using Response.Redirect("myapp.php?tType="+M.tType+"&myalias="+M.alias+"&First="+M.First+"&Last="+M.Last). This page then sets up an environment ending with an iframe to a 3rd party. The iframe is loaded, the user interacts with the page then chooses to close the application page. Upon closing there is a redirect to thanks.fwx page thanking the user using Response.Redirect("http://www.thanks.fwx")
 
Sooo, my question is how do I pass a session variable from an fwx to a php and then back to another fwx?
 
Any help is appreciated.
 
Joe