I am thinking about how to improve one of my websites - the user has to wait a long time for data to load from the database..... I was thinking - what are the implications of having the data stored in an XML file...
updating is not an issue - as they only update the database once in a while... its mainly for reporting.
How could I protect the files from others viewing other people's files? ie: if you looked at the source code and saw the JS opening a file with "username.xml" they could just type random usernames and get other people's files and therefor data!!
maybe I could randomly name the files? Then store the random number in the db next to the username? the chances of a user guessing someone elses number is fairly small, right?!
Any advice will be much appreciated!