31 posts
Location
Brazil
Posted 19 March 2015 - 08:37 PM
Anyone out there could give me tips on how do I do session persistence on my codes? For now is just for a simple one but who knows what I might have in mind.. Any help is welcome.
2427 posts
Location
UK
Posted 19 March 2015 - 09:01 PM
There are a few APIs in the forums which keep track of variables.
Look into state machines and store the state in one of the persistent variable APIs
On program start, check the state from the API, and continue from there.
31 posts
Location
Brazil
Posted 20 March 2015 - 07:54 PM
Could you post any code as an example? ty
1080 posts
Location
In the Matrix
Posted 20 March 2015 - 08:10 PM
Load a variable from a file at the start, then whenever you change that variable in your code, change it in the file. (Simple explanation)
Fs api.