简体   繁体   English

Appwrite 本地存储 Session 问题

[英]Appwrite Local Storage Session Issue

Appwrite is installed in the subdomain. Appwrite安装在子域中。 While the site is working in the main domain, it does not save session to localstorage when I login.当该站点在主域中运行时,它不会在我登录时将 session 保存到本地存储。 But if I run it in a different domain, the problem is solved.但是如果我在不同的域中运行它,问题就解决了。

It works when Appwrite and my app are in different domains.当 Appwrite 和我的应用程序位于不同的域时,它会起作用。 If it is on the same domain, it does not save "cookieFallback" to localstorage.如果它在同一个域中,它不会将“cookieFallback”保存到本地存储。

I suggest you to update Appwrite.我建议你更新 Appwrite。 After the update the problem was fixed, I had the same problem.更新后问题解决了,我也遇到了同样的问题。

The fallback cookie here is used for overcoming cross-site cookie policies.此处的备用 cookie 用于克服跨站点 cookie 策略。 Sessions should work even if the fallback cookie is not present.即使后备 cookie 不存在,会话也应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM