Global or Session Update


I am new to this electron dev.
I am trying to make some property set that can be carried over all the life span of a single app session. Just same as java http session. The value of the property can be updated as when required and a new property also can be added into the existing set. If some one can provide a code snippet, it will be geeat.