I'm making a web application, server need to track which browser tab/window the request was coming from.
My approach:
Pass the window/tab name (window.name) as a parameter with all requests from browser to server.
Questions:
1. Is there a generic way of doing this i.e append the parameter to url on the fly, instead of append the parameter to forms, anchors and ajax calls individually?
2. Is there a better approach?