Expose Browser Tab Unique ID or Server Session ID Property

Allow easy access from code eg.. {{ me.browser.tabId or me.serverSessionid }} to either the server session id, or unique browser tab id.

The reason for this is that the app may be open in multiple browser tabs at the same time, with the user editing different "records" (in this case, personal details) in each tab. As the user makes changes, a "current state of affairs" record is recorded against the user (current record_id, related record_ids, time changed etc...) in the back-end DB.

However, with multiple tabs open, that "state of affairs" record comes under contention with multiple tabs fighting to update the same record.

So instead of these columns ...

user_id, change_date, id1, id2, id3 etc...

it would be handy to be able to store...

user_id, browser_tab_id / server_session_id, id1, id2, id3 etc...

I hope that makes sense? If these properties are already available, forgive me for posting this request, but I can't find these properties anywhere.

Thanks in advance!

Hi @xl_MURDOCH_lx,

That does make sense, however, we HIGHLY recommend against editing Retool apps with multiple browser tabs open as this can lead to a number of other issues along with the one you are describing.

Each app editor will try to make save requests periodically to the server and will override progress on other tabs to try to keep things in sync and has been known to also revert changes back if an outdated tab makes a successful request to save what is currently open in that editor :sweat_smile: