Failing to persist session data on reload or navigation from one mashup to another
Scenario:
User sets a value that needs to be persisted for the session until the user logs out or sets a new value himself.
What's done so far :
1. Created thingshape > added it to the user subsystem > property in the ThingShape is persistent
2. On the mashup there's a text box to accept value from the user > set button which calls the setter service with following code :
Resources["CurrentSessionInfo"].SetGlobalSessionStringValue({
name: "unitNumber" /* STRING */,
value: unitNumber /* STRING */
});
3. There's a label widget on the mashup to show the value set by the user, which calls the Resources["CurrentSessionInfo"].GetGlobalSessionValues which returns a persistent property value unitNumber, set above by the setter service.
4. ServiceInvokeCompleted event from the setter service is bound to the Getter to return this value.
5. This works fine
Problem:
Once the mashup is refreshed or user navigates from current mashup to another and comes back, the session value for unitNumber set by the user disappears.
Not sure if I am missing any further step to persist this. Could someone please help point my mistake here
Thanks!
EDIT:
TWX version : 8.4.2

