Appwrite is installed in the subdomain. While the site is working in the main domain, it does not save session to localstorage when I login. But if I run it in a different domain, the problem is solved.
It works when Appwrite and my app are in different domains. If it is on the same domain, it does not save "cookieFallback" to localstorage.
I suggest you to update Appwrite. After the update the problem was fixed, I had the same problem.