Hi Warp,
so, in NetTalk 12, the session data was moved from a “queue” to an “interface”. This disconnects the server from the session data storage, which then opens the door for other storage options. (Gordon and Flint did a session on this at CIDC 2019 as they are using a session data store which spans servers.)
What this means is that direct access to the Session store is more limited. Specifically, you have access to the interface (which is all methods) but not access to the data directly. (Weeell, sort of, you could force direct access if you wanted to.)
The interface is declared in NetWebSessionsInterface.Inc .
However, and this is probably the key thing, it’s not clear from your above code what you are trying to do. It seems to me like you are trying to retrieve a value “for all sessions” - in other words ou are getting a value which is not related to any one specific session. Is that correct?
this would better be accomplished using a “Host value”. Host values are the same as session values, but they span across all sessions. They are set using SetHostValue, and retrieved with GetHostValue.
If you have something else in mind, let me know, and I can best describe how you might achieve that.
Cheers
Bruce