Hi. I'm releatively new to AJAX and was hoping someone could shed some light on an issue I have with the XMLHttpRequest. I would like to use AJAX on a company website that I will be working on, but security issues have got me a little worried. Namely, if I have something like:
I am concerned that the "information.php" file (or any file for that matter) could be accessed without my knowledge. It would be fairly easy to gain access to that file, thus allowing a user to open it and possibly corrupt my information. Is there a good way of securing this data? There are other issues such as Cookies and such that are of concern as well, but I have found some documentation on those issues already. Any help on the aforementioned question would be greatly appreciated.
Thanks!
- URL
Code:
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
...
xmlhttp = new XMLHttpRequest();
...
xmlhttp.open("GET", "information.php", true);
...
I am concerned that the "information.php" file (or any file for that matter) could be accessed without my knowledge. It would be fairly easy to gain access to that file, thus allowing a user to open it and possibly corrupt my information. Is there a good way of securing this data? There are other issues such as Cookies and such that are of concern as well, but I have found some documentation on those issues already. Any help on the aforementioned question would be greatly appreciated.
Thanks!
- URL