So, imagine hypothetically you have applied a script effect to some random static or object in a cell. This object was defined in the editor, not created dynamically. Your script set's a variable on said object, and you leave the cell.
How long is that variable maintained? Will it carry over in a save game until the cell resets?
Is it lost the moment you exit the cell?