Flux is a reducing agent that works at high temperatures - reducing because its role is to remove oxides. I think at room temperature, flux is essentially inert. If you wipe some flux on an oxidized joint at room temp, it doesn't really do anything, unless you heat it up. So I think it lasts a long time. Like others here, I have used ancient rosin core solder without issues.
This is unlike film developers, for example, which are reducing agents that work at close to room temp, so they have a tendency to oxidize away. (I am oversimplifying the analogy, since of course developers are in aqueous solution and so on, but reduction vs oxidation is the key point.)