Variables arn't saved unless you save them before closing mIRC. mIRC doesn't autmatically assume you want to save them.

/set %blah 123 <--- This is saved as a variable in your remotes.ini file.

/var %blah 456 <--- This is disposed of once a script calling it stops or is stopped.