I have a popup that stores a DataTable into a session so that after the popup is completed and exited, the original page will use that session to rebind its table.
I also have another page that uses the same popup so the session will definitely be the same as the previous one.
If the user has two tabs open, each with one of the pages, they can work with two popups in different tabs and this causes problems to the session because the data in it will flip between the two pages.
Is there a way to only have the session data kept in that tab/window?
It is better to avoid storing large data in sessions. Database call could be an alternative but if you have to use session for each tab use unique names like this. You can distinguish the datatable for each link in the popup code on server side by passing some querystring while opening popup.
and