Hi all,
  I need some advice on how to hold a user history data.
 
This is what I have:
 A LogInServlet  | check for login info and create a session and a user object
 A FormDistributer | handle quiz forms for the users to answer
 A FormCorrector | corrects the forms the users filled and register the data.
 
I'm not very good on IO and I would like to hear from you a good way to register the data, I will create a history object for each user and save it to disk. But when should I save it? In the end of the session or at each time the user sends a form to be corrected?
I do not know either how should I manage the files, one big file for everybody, one file for each user or maybe one file for each quiz the user answer?
I need to know a way that is safe and put less weigth on the server. I apreciate any hints.
 
Thanks in advance,
Bruno Reis
 
 

Reply via email to