Is it possible to generate unique ID for each tab?

1k views Asked by At

Is it possible to generate unique ID for each browser tab and send it every time I submit or click an AJAX link on the page. I want to use this ID for session control.

or Are there any other solution for multiple tab session control other than keep an id in url?

Thank you in advance.

UPDATE SITUATION: I have a document based form page which have some popup and ajax link to update data that i kept in session. Then if user open this form in multiple tab how can I distinct a page from each other?

1

There are 1 answers

1
Mihai Dinculescu On

Just don't, please.

ASP.NET MVC is made to be stateless.

You may think you need state but you really don't. If you'll tell us more about your situation we'll sure come up with ideas how it can be done without session.

If you want to pass information between clients, real-time even, you can look into SignarR.