Novice Session/Cookie - how to use display conditions based on if a user has a logged in session (App Connect)

Hey all,

New to incorporating anything to do with sessions on the AC side. I have two wappler projects that are part of the same overall platform. The secure, logged in environment sits on a subdomain e.g. login.platform.com and the public part of the platform is www.platform.com.

Users sign up and login on login.platform.com.

What I’d like to do, is display a different element on a modal on the www.platform.com domain, if the user has an active logged in session, after logging in on login.platform.com.

I assume it might be something to do with session storage manager, but i’m a little lost due to the two different projects, and how to handle this on the FE.

I’m on a NodeJS project (both) so I assume I do something with the layout page on both Wappler projects. Conceptually this is what I’m thinking:

Add a session storage manager ‘session1’ to Wappler project login.platform.com and create a UID variable. On successful login - I use a dynamic event and set the UID variable in session1 session storage manager to the users UID.

I then add a Session Storage Manager to the public site www.platform.com and call it the same ‘session1’ and add the same UID variable.

I could then run conditions on the UID value having a value.

Considering the cross-domain nature here, will the UID carry across successfully as the user navigates from one domain to the other?

Any advice here appreciated.

Thanks!

Community Page
Last updated: