Record the actions you do in Blender option.

I might be doing something wrong but once I save, close and re-open my blend-files, all the undo’s and redo’s are erased.