Preferred way of passing data between pages?
#1
Hi,

What is the preferred way of passing sensitive data between functions which I cannot put into the ListItem uri? Many people seem to do it with global variables but that's not so good. I thought of creating a few hidden addon settings entries which I can use to store tokens, cookies and login credientals needed for my functions, but that probably isn't good either because of the I/O overhead it causes on reading/writing to the settings.xml always. Having a file based db or a JSON would also be similar. So I am not sure... What would you recommend?
Reply
#2
set window properties. they are only used while the addon is running and then forgotten when the script ends.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#3
Good idea however what if I have multiple windows? I'd have to set the props for all which I'd like to see persistently, no?

And that works for strings but isn't really nice for objects, only if I serialize them.
Reply

Logout Mark Read Team Forum Stats Members Help
Preferred way of passing data between pages?0