Possible to detect if a user has multiple tabs of your site open?

后端 未结 8 2225
执念已碎
执念已碎 2020-12-05 02:10

I\'m just thinking about the whole site registration process.

A user goes to your site, signs up, and then you tell him you\'ve sent him an email and he needs to ve

8条回答
  •  [愿得一人]
    2020-12-05 02:58

    You can send an AJAX request every X seconds from the original tab that asks the server if it received a request from the email.

    You cannot close the second tab automatically, but you could have it ask the server after 3X seconds whether it heard from the first tab.

提交回复
热议问题