I have and application where users need to fill in 10 to 30
rows of data by searching and matching data. So it takes a little
while to complete the process. While this is happening the data is
saved in a 'array of structures' in the session scope and then
posted to the database at the end. The information needs to be
complete (ie the appropriate number of rows filled in) or else it
is no good, which is why it is not posted until the end.
Sometimes when people are working on this they get called
away and the session times out before they return and they lose the
work in progress. I'd like to be able to save this data (such as in
a cookie) so that the user can restore the data when they log in
again.
In this case, the amount of data that needs to be preserved
is not great. There will be some unique identifiers for the group
of data and then a row number and ID (representing a record in a DB
table - not all the info in the array of structures needs to be
preserved to recreate it) for each row (up to 30 rows).
I am looking for some help about what is the best way to do
this. I have another situation with a multi-step form where the
data would almost certainly be too big to allow using a cookie to
preserve the data.
Thanks for your help and suggestions,
Magnus