I've manually injected the same JS code-snippet to the HTML's head in the iframe. And it doesn't solve an issue. Moreover, it looks like now I am having multiple sessions simultaneously instead of having both of them linked together.
Any ideas on how to fix that?
I don’t think it is possible to link those session, if rand is treated as new browser window with different application, this may be issue here. Those iframes are served from the same domain or this is external 3rd party app?