Last post Sep 17, 2020 06:34 AM by XuDong Peng
Sep 16, 2020 12:15 PM|dobokocka|LINK
I'd like to add the following feature to my mvc application:
Some kind of auto save funcionality for form data. I'm looking for a general direction, where to start modifying my existing code. Is there any well tought out structure or design pattern for this issue already?
In case of the user closes/refreshes the browser, or the network connection drops, I'd like to retrieve the (unfinished) data put in the form, so the user can continue filling it out and submit eventually.
Should I store the data in the session, or in database, maybe browser? Which could be the most efficient way, also where the least amount of modification is needed?
The application currently has a data access layer, entity framework, DI, and devexpress based forms, and controls.
Sep 17, 2020 06:34 AM|XuDong Peng|LINK
Usually used to save temporary data, we may use:
But according to your description, this function needs to meet the occurrence of multiple situations. And you can’t avoid losing the session when user close the browser.
So I think it is more reasonable to use a database to store this part of the data.