I'm coming from php so I know that
$_SESSION['variable'] = 55
Can be modified from between pages and is not depending on an external file being imported to do.
How do I do this with python? I am using .cgi scripts.
Googling around brings me to this idea of using a file which stores values across files but the changes only to the original file will be felt globally any other changes are local.
For example, the suggestion is:
config.py
variable = 5
otherfile.py
import config
print config.variable
config.variable = 3
I don't think this will give me the result that I want. I don't think the changes in otherfile will pass to a different file I made.