Usually I mix enough paint with intention to have a bit more than I will actually need, especially when I have mixed to match a color. I plan to dispose of the excess, when I'm certain the job is finished. Storage of paint has never really worked well for me.
That said, I have had the most success by making sure that the storage container is completely clean, with the threads of both the cap and jar having no residue. I clean and save some of my emptied glass jars, just for short term storage of mixed paint while a project is progressing.
If air is allowed to enter a storage jar that contains paint, thinner and other common ingredients like retarders/accelerators, it won't take more than a rather short time for it to become useless.
Patrick