go to post Pravin Barton · May 1, 2017 Is it true that Windows doesn't have access to csession? I'm able to run it on my Windows machine:C:\InterSystems\Cache\bin>csession CACHE1Node: reimaged67, Instance: CACHE1USER>w $zvCache for Windows (x86-64) 2017.1 (Build 730) Wed Dec 14 2016 22:43:18 EST
go to post Pravin Barton · Apr 28, 2017 John Murray also provided a different solution in this post. You can view globals by database rather than namespace in the SMP. That way you can export a global from one database into a file, then import it into another database. After some digging I found this is actually what the documentation recommends. The advantage of the MERGE is that it's much simpler to do programmatically. I can't speak to the difference in performance.
go to post Pravin Barton · Apr 28, 2017 Good point that I forgot to highlight. If you don't kill the old instance, it will sit in the old database without any easy way of referencing it.
go to post Pravin Barton · Apr 7, 2017 Hi Ashok,It looks like the %session variable isn't accessible in a zen background method. I'd suggest passing the %session.SessionId as an argument into the background method. You can store the JSON data in a global or a persistent class keyed by the session id, and access it from there. Then you can override the OnEndSession() method of the application's event class to delete the data when the session is over: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
go to post Pravin Barton · Jan 20, 2016 I used %INLIST $ListFromString(?) as you suggest and it solved my problem. Thank you for the help!