WEM Session Folder
The Old "Session" in your Data Model
We all have become accustomed to having fields in the Data Model that are not part of a Persistent List - so they are not saved to a database and their values are only available to one specific user in one specific user-session. Also known as temp(orary) fields, or transient fields. Many WEM-users have created a folder "Session" within their projects to store some (or most) of these fields, to make clear what these fields were used for: to store user-selected filter options, logged-in user information, keep track of certain progress in certain processes.
Once a user would close the browser, all these values would be lost and a new session could be started. Also it was not possible to have multiple tabs open for a specific application and share the same data and the same progress over these multiple tabs. You could duplicate an active tab and then have 2 tabs with momentarily the same situation - but as soon as you would change a thing in one tab - it would go on with its own session unaware of the situation in the other tab.
One situation to consider: when a user closes the browser, and shortly thereafter opens the browser and uses a link from the application, it MAY very well be that the user continues exactly where user left off, INCLUDING transient fields and even unsafed data changes.
HOW?
Browsers stay active in the background even when closing all tabs - for user-benefit, easy and fast startup and continue where you left off.
Browsers may auto-complete your most recent address, so when typing in the hostname of the application, the browser may autocomplete it including the ?sv=..... value - which is actually specifically asking for that Session Version on the server - if it still exists and has not expired, you will pick up the situation exactly where you closed your browser. You may not even notice this....
But anyway - as this is all to make it more user-friendly from the browsers, it is not a security issue, as it is still linked to your active device-user-browser-session.
Unless you leave your device behind unattended and unlocked so someone else can start your browser, this is all still safe and secure.
Though you may always choose to add some re-authentication flows if you think it is necessary in your application.
The new WEM Session Folder
With the new Kubernetes environments, WEM Runtime can now support a more powerful WEM Session using the specialized WEM Session Folder. This special Session Folder can be activated from the Project Features page in Project Configuration:
Activating the Session Folder setting will create a specific Session Folder below your Data Model tree:
The fields you put in this Session Folder will behave different from what you may have become accustomed to in the old way.
Once you have activated the Session folder Feature, the Session folder is created and this can not be undone. The setting will disappear from the Project Features Page. Not to worry - you can (and have to) choose what fields to put in this special Session folder, and only those fields in this folder can be used in the new way.
You can - and will - use the Transient Fields in the same way you are accustomed to. You will only put fields in this special Session Folder that may - or should - be used in the more powerful way we will describe in more detail.
For most fields and most situations, you will just keep using the "old" way - use transient fields in the Data Model.
Only when you are sure you need the specific new Session way-of-work, you put those fields specifically in the Session Folder.
when using the browser-back-button should not affect the value;
value (or collection) should always be the same when shared over multiple tabs;
if value is changed in 1 tab, it should also change in the other tab;
Last updated
Was this helpful?