How to set up multiple Memberstack logins on one website using reverse proxy while preserving session continuity? Answered
If I use a reverse proxy to merge two websites. Can the login work across the two? And obviously, not logging them out in between pages
Comments
5 comments
Hello Cameron šš¼
I believe we use localStorage to save the login information. Iām not really sure I know what reverse proxy is but maybe Josh Lopez or Chukwudi Onyekwere or Nicolas Scott has an answer to this.
Even if with subdomains currently, they need to log in twice, but it might be different with React?
No, you'd need to use SSO with our OIDC config, but keep in mind you'll not be able to use any of our client side APIs since the session is different
Nicolas Scott okay thanks for letting me know
Is it possible to have two separate login forms on one website, each connected to a separate Memberstack account?
Example:
Is this possible? Please let me know if that is not clear. Thank you in advance!
Uhm... the last part is not that clear to me.
So in summary, you have two sites, each with a memberstack project. You want to offer to usersA, the service of users B? Is it? But in the same page... Might I ask is there a problem with redirection from websiteA to websiteB?
Internally, the user sessions are handled in the browser by domain, so I wouldn't recommend to use the same domain for two memberstack projects. You could perfectly use subdomains for that.
You could try to embed the websiteB page in your websiteA project with an iframe, but it's tricky, specially if your sites have different domains, because the browsers sometimes block cross domain requests for privacy concerns.
Please sign in to leave a comment.