I'm writing Multiple Add-ons for a personal build of KODI. What I am trying to achieve is:
BUT xbmcplugin.setSetting( "token" ) AND xbmcplugin.getSetting( "token" ) saves the value in the context of Add-on where it was called.
HOW to achieve Saving Global Values in KODI with Python
You can use window properties for that. Window 10000 is one of the main windows so it will always exist.
Set it
xbmcgui.Window(10000).setProperty('myProperty', 'myValue')
Read it
xbmcgui.Window(10000).getProperty('myProperty')