session management when an app is being used in multiple tabs

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
darkdragon
User
Posts: 151

session management when an app is being used in multiple tabs

Post by darkdragon »

Hello,

We're dealing with a specific situation.

We developed an app where there are multiple forms to be completed by end-users. In this app we collect various pieces of information: events, vendors, contracts, invoices, etc.
Since there are multiple business rules, after the first form is filled, we have developed a dynamic horizontal menu which is being displayed instead of the crumb-trails. This way users jumps from form to form until all pieces of information has been collected.

In order to achieve that the menu displays either the Add, Edit or the View pages (Add is always the current step, View is for past filled forms, Edit is bein triggered by the end-users when he wants to correct some past data in the process). We make use of a GET param (RecordID), which is determined after the first form has been saved (which is common for all the processes).

In order to collect the current step in the process, in Row_Inserted() or Row_Updated(), we need to make use of the RecordID param, which unfortunately is not available as a GET param (is always null), so we have set it as a Session var in Page_Render() server event in order to be retrieved later in those two server events.

We have started to encounter some troubles due to the fact some users open the app in multiple tabs, and the session vars are getting overwritten by the last Record opened.

How to deal with such scenario? Anyone has a working solution?
I'm aware of the Window: sessionStorage property on Mozilla docs, but I wonder if anyone implemented such kind of approach.

Regards.


MichaelG
User
Posts: 1192

Post by MichaelG »

You may need to pass the browser's tab id from the client and use it as part of your session variable. Please google for "browser tab id" to see how to get the browser tab id value.


Post Reply