PHP Sessions Variable Assistance
-
Hi all,
I’m currently working on a survey project. The user is invited to complete a form to create an account on our database for all their answers to be stored etc. The “Create an Account” form is an external form called TypeForm that is embedded within a page. Once the users submits the form TypeForm sends a webhook to our server, which is working perfectly and I can see the results of the PHP session variable (storing the e-mail address) in the response from our web-server back to TypeForm. When the page is automatically redirected, after the user submits the form, the PHP session variable is lost on the next page. It’s definitely lost between the redirects of the page and I’m not 100% sure why. I’ve even tried creating an automatic Ajax call to send the e-mail address to the next page, however, the same happens I can see it on the initial page, but the data in the variable is lost once the page is re-directed.
In plan text this is the process:
User Completes Form -> Form Responses are recognised by TypeForm -> TypeForm Sends Webhook -> Web-server Responds to Webhook -> Page Re-directs -> Variable is lost.
The webhook is sent to a WordPress page, however, the functions that run the webhook are on the themes page.php and then the PHP session variable is sent to a plugins page.
Could anyone please be any assistance on how I may be able to resolve this issue?
If you require any additional information, please let me know.
Thanks,
Nathan
- The topic ‘PHP Sessions Variable Assistance’ is closed to new replies.