Multiple sessions through tabs in a browser


I have a use case where i want to maintain multiple sessions in multiple tabs.I have a testing tool and a user can run multiple tests at a time.The web interface allows a user to run multiple tests at a time.Now i want to maintain a session for each of those runs and the user can resume those sessions later. I am not looking for mutiple browsers solution.How can we achieve this? Can we control which cookies to be sent with a request?If you can provide an example and small code snippet,it would really help.

Thank you.


Nor a session, nor a cookie is tab level, it is system level. If a session is started for the browser, it is for the browser regardless of the tab it is started or joined from.