Detecting the tenant without any user interaction

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Detecting the tenant without any user interaction



I am developing a multi tenant CMS, where the specific clients domain urls are redirected to my multi tenant application url (e.g. client-a.com is redirected to my-multi-tenant-application.com). Each client have spesific content and design elements, assembled into a common html/css frame.



When a user logs in, I know which tenant they represent by storing user-tenant relations internally. But the problem is; how do I detect which url was originally requested, so that I can display the correct content before the user has actually logged in, or to a visitor that has no credentials at all?



I would assume this is a quite common situation, but can not find a good solution. I don't want to use the referer HTTP-header.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered