Hi all !
In my previous question asked today I said that I am using dropdown lists for selecting country, state, city and pin.
The initial lists are blank and use the selection of country to trigger the loading of states and choosing a state triggers the loading of cities and so I am using ajax for this purpose - more specifically the $ajax() function of jquery.
In a normal call to a php page, the integrity is maintained via sessions, and csrf is prevented via tokens embedded in the form, but how do I take care of these when data is being passed through the ajax call ? Any other security measures that need to be looked into while using this method or special security mechanisms that I need to apply?
I would of-course check the data received this way, by using all the normal data validation methods on the server side.
Thanks all !
Edited by ajoo, 21 April 2017 - 01:30 PM.