Skip to content
Back

[Solved] Cookie expiration date is in 6 months instead of 1 year

  • 0
  • Resolved
  • 3
  • Self Hosted
  • Auth
  • Web
ddenev
11 Sep, 2025, 06:37

When I login to my app with createEmailPasswordSession the cookie has only 6 months of expiration but I have 1 year in Auth settings. I have console-logged the session that is returned from createEmailPasswordSession and itsexpire property shows 2026-09-11T06:20:29.919+00:00, which should be the correct session expiration time. Why is the cookie having a wrong expiration?

TL;DR
Cookie expiration date showing as 6 months instead of 1 year, tested on self-hosted platform. Turns out it's a Brave browser behavior. Check Brave's deviations from Chromium for more info.
11 Sep, 2025, 07:35

Cookie expiration date is in 6 months instead of 1 year

15 Sep, 2025, 13:51

Dear Appwrite support, is this a normal behavior or a bug?

15 Sep, 2025, 23:19

i can't seem to reproduce 🧐

15 Sep, 2025, 23:22
16 Sep, 2025, 08:42

I'm on self hosted. I see you test on cloud. Could this be the problem?

16 Sep, 2025, 12:28

What is your Appwrite version?

16 Sep, 2025, 18:51

1.7.4

19 Sep, 2025, 14:14

Can I expect an update from the support team on this issue? Thank you!

30 Sep, 2025, 09:40

<@462046107556511744>, my apologies, but did you try with self-hosted?

14 Nov, 2025, 10:29

[Solved] Cookie expiration date is in 6 months instead of 1 year

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