How i would solve the problem…
- You are on site-A and click a button to be redirected to site-B.
- But Site-B is just for special user, with a special role (just for VIPs).
- 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?