Back

How do Sessions Work In Appwrite

  • 0
  • Users
  • Accounts
SenZi
8 May, 2023, 22:34

Hi, Is the Session shared between domains / subdomains? For example I have an appwrite instance on appwrite.example.com and i have a 2 other web apps on account.example.com and app.example.com. I am logged in app.example.com and when i checked for user account on account.example.com I am getting the same user details.

Also I am able to create new projects on the appwrite instance on appwrite.example.com using the account I created on account.example.com but that shouldn't be possible right if new sign ups are disabled?

TL;DR
The user is asking how sessions work in Appwrite. They want to know if a user signed up on their web app will be able to access the console and create a new project. The response states that the signup limitations only apply to new users accessing the console. After logging in, a user can create as many projects as they want. The response also clarifies that sessions are shared across the same project regardless of the web platform. Another user asks if the session is shared between domains and subdomains. They give an example of having an Appwrite instance on appwrite.example.com and two other web apps on account.example.com and app
Binyamin
8 May, 2023, 22:35

Sessions are by the Appwrite domain. And it's sheared across the same project no matter the web platform.

Binyamin
8 May, 2023, 22:36

So if you want two different users for the same Appwrite (server) you'll need to create two separate projects

Binyamin
8 May, 2023, 22:37

As for your second question after you're login you'll be able to create as many project as you want

Binyamin
8 May, 2023, 22:38

The signup limitations is for new users accessing the console only

SenZi
8 May, 2023, 22:39

I mean, if a user signs up on my web app will they be able to access the console and create a new project? because right now i can for some reason.

Binyamin
8 May, 2023, 22:41

Can you test in incognito mode to see that the App user gets access to the console

Drake
8 May, 2023, 23:08

How do Sessions Work In Appwrite

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more