2019-07-21, 23:25
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?
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?