I have user registration process where at the end of it an email is sent to the registering user to confirm the user's email. The user then goes to his/her email and finds the email with the confirmation link.
At this point the user has two tabs open (but can have more) - the email tab and the tab to my domain, lets call it mydomain.com
.
Is it possible, that when the user clicks the confirmation link in the email that the mydomain.com
tab thats already open gets updated?
Right now when the user clicks the confirmation link, a new tab to mydomain.com
gets created, which creates two instances to the site, which is fine but not ideal.
I know I can create a function that periodically checks if the user confirmed or open a websocket, but I am wondering if there is something simpler.