getLoggedInUserDetails() not updated when website_user record of logged in user is updated

Description

When I change the website_user record of the current logged in user, the data in getLoggedInUserDetails() isn't updated. For example when filling out an "update my profile"-form.
Result: If I change my name in my profile the name is still displayed wrong. After logging out/in the data is correct.

Simple testcase:

{{var theOldUser = getLoggedInUserDetails();
var UpdatedUserRecords = userDao.updateData(id= getLoggedInUserId(), data={...});
var theNewUser = getLoggedInUserDetails();}}

Problem here is the cached data in the sessionStorage object used in getLoggedInUserId().
There should be a function for re-updating the cached data (e.g. updateLoggedInUserDetail()) when needed.

Environment

None

Assignee

Unassigned

Reporter

Michael Hnat

Labels

None

Accepted

None

Priority

Medium
Configure