I am, for the first time adding a token to my php form(using also https), but I have a problem.
Here is my workflow and where the problem happens:
1)Form shows up in html and a token is generated via php and placed into an hidden field.
2)The form data is sent via ajax and processed via an external php script that sends back a success or error.
While this is happening the token is also kept in a session.
3)When an error happens in the form, the ajax…