Persistence

Global variables are preserved between runs, but not between sessions. Local variables are not preserved between runs or sessions. However, you can preserve values by storing them in a file, or writing and reading registry keys.