Hello.
I need to store some temporary data to pass it between aspx files before saving it to database. I wonder which approach is better:
- To store all data initially in database with some flag set to false (IsDataSaved = false for example), this approach produce a lot of unnecessary data which I would like to avoid
- Use Session[] dictionary, store all data there, and only when user saves the changes - save data to database
Is Session variable even intended for something like this? Or is there some other approach?
Thanks in advance.
Best regards.