I'm developing a web application. The front end is with Angular and back-end is a Rest API with django rest framework. For some customer requirements, I need that the django rest api is able to differentiate between polling requests with a sessionid. After some searches I found that I can identify the session in the REST API side with the value of:
request.session.session_key
But that isn't the best choice, because for two different tabs I get the same session_key and the desired sessionId that the rest api receives in the request should identify session for specific tab. So not sessionid for different PCs and host IP address, or browsers only, but also it should get two different sessionids for two different tabs.
Does django request object contain other id to identify host tabs?
I guess that the solution can be found in Angular side.
Is there a way in Angular and typescript to identify tabs sessions?