Forum Moderators: coopster
Pls note that I am not describing any kind of user authentication system, ie there is no log in/out in my page.
Also, the users, as described above,cannot write anything to the input file once they write their data in the form and push "Submit".
Of course, they cannot write anything to the results file as well, as this file contains the results given by the external program.
i apologize for the length of my message but I wanted to make it as clear as possible...
Many thanks!
Sessions are a way to maintain state between you (the server) and the user (user's browser). Each request from the browser to you is processed, served, and the disconnect happens. A session allows us to keep some of that information stored until the next visit. That's the kicker though ... if the user doesn't visit again, or closes their browser, you have no idea. So what happens with all that information we were keeping around? Garbage collection. That's the term for it. PHP has some built in mechanisms to rifle through those session files and clean house once in awhile.
If you wanted to look through that data first, you are going to have to write your own garbage collection routine. I would also recommend writing some kind of timestamp into your database table so you can do some garbage collection on that as well.