Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect some unique browser instance number, or pid number per "window" or per "tab"

Tags:

javascript

I'm writing a web app, and I have the classic problem that the session cookie is shared between browser instances, and browser tabs. Obviously the browser doesn't send back anything the header. However I am able to control all the requests inside the app, so I'm wondering if I can add my own "parameter".

So the question is, is there some JavaScript which might identify the process ID, or Instance ID, or Tab ID on the client side? I can take care of sending it to the server, but I'm wondering if anyone knows of any tricks on the browser side.

Browser-specific suggestions are welcome - I'm very happy with answers that will only work in one browser type.

like image 247
Bruce Avatar asked Jul 01 '11 07:07

Bruce


1 Answers

Here is the list of information you can get from javascript: Information about your Web Browser from Javascript. I don't think you can get system specific information like PIDs from javascript, it would certainly be a security issue.

like image 198
Giann Avatar answered Nov 15 '22 04:11

Giann