A link opened in a new window does not recognise that user is logged in

How i would solve the problem…

  1. You are on site-A and click a button to be redirected to site-B.
  2. But Site-B is just for special user, with a special role (just for VIPs).
  3. OK. Now you have two options on this point.
    a) Query before redirect, or (b) query on site-B for user-details.

What would be the better way, what do you think?

I would take way-A, because it is has more performance and less loading time.

So, that menas, when you click onto a button a process starts, which should find out who is logged in and which role this user has, right?

Or would it even be better to get user-infos directly when site-A loads (isReady) ?

Yes of course it is.

So at the end, site-A should know the user-details, when clicking onto the button. When USER is NOT a VIP —> no redirect to site-B, but if USER is a VIP —> redirect to site-B (to the VIP-site).

Is this the flow which you wanted to create?