[eluser]Unknown[/eluser]
In regards to sessions and multi page forms - what is the best practice to handle data persistence across multiple pages (assuming the user is not required to login or have any type of account)?
My thought was to enable session storage in the database and then link that session id as a primary key in my main data table. I would then update the main table with each subsequent form post.
Or would it be better (performance wise) to store everything in the cookie (it's encrypted anyway) and then dump into the db once the process is complete? I realize there is a 4K limit to the cookie, and the amount of data in the multiple forms will fit within that limit.
My main concern is that I do not want the db cluttered with a bunch of half completed rows. I guess I could always throw an "is_complete" column at the end of the table and set it to true at the last form post.
What do you all think?