-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: Event session.delete not trigger when remove cause of TTL #5801
Comments
@fliitor, thanks for creating this issue! 🙏🏼 Unfortunately, the event is not triggered automatically when a session expires. It is only triggered when a user deletes their session. Part of the reason is the session is not actually deleted. Instead, the browser automatically removes it client-side because of the expiration on the session cookie, or Appwrite ignores the session because it doesn't pass verification. |
ty for answer @stnguyen90 |
@fliitor, we do already have a maintenance task: appwrite/app/tasks/maintenance.php Lines 97 to 102 in 73329ad
that triggers the delete expired sessions job: appwrite/app/workers/deletes.php Lines 419 to 435 in 73329ad
However, these don't trigger the event because the event is only triggered when the user logs out via the API. |
Oh ok. Session keep on database cause I change session length to 1 year. I understand You can close this issue if need, thanks for your time |
I can close it, mb |
👟 Reproduction steps
users.*.sessions.*
events, and output onres.json
account/sessions/[SESSION_ID]
endpoint)No event is triggered
👍 Expected behavior
Event aboute deletion of session need to be populate (on function / webhooks)
👎 Actual Behavior
No log about this event
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
Ubuntu 22.04 & Docker compose
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: