R
R
roskoshinsky2016-08-22 20:21:25
PHP
roskoshinsky, 2016-08-22 20:21:25

Is there a technology for identifying tabs in a browser window?

Good afternoon! As far as I understand, at the moment the HTTP(S) specification does not provide for native identification of tabs in browser windows. Why? Has something to do with security?
But it would be great to allow servers to identify the client with an anonymous random hash.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
riot26, 2016-08-22
@riot26

But it would be great to allow servers to identify the client with an anonymous random hash.

what prevents writing "anonymous random hash" in cookies?

O
Oleg, 2016-08-23
@ollisso

https is a "protocol" for encrypting http traffic (not entirely true, of course, but we simplify it). He knows nothing about the browser, knows nothing about tabs, how to display data, and so on. It's just passing data. It can be used by both browsers and scripts, programs, etc.
Therefore, there can be nothing superfluous in it. (because all this is superfluous - you need to implement it in every server around the world. At the same time, 99.999% of sites do not need this).
You speak, already about level of "your application". It may or may not use HTTP.
If you need to make the same application appear differently in each window, i.e. to have different "sessions", then this is your logic.
To do this, you have different options, in particular, the simplest one is to always pass the session number in the address, in the request parameters. Or, make it so that there is a permanent connection to the server, for example, via a web socket. A second tab was opened with the same session - to break the connection in the first tab, or not to allow the second connection to be opened with the same session. There are options :)

W
wisgest, 2019-04-22
@wisgest

window.name?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question