I have the usual "Remember me" checkbox in my login form and I want to set the session expiration time to 1 hour if the user does not tick the checkbox, is this possible?
Or do you have any other way to handle such a case? It is a very common thing, but I never had to implement such functionality, any help is very much appreciated.
Maybe you can:
- Create a collection of sessions without remember me
- On log in, if they didn't check remember me, create a document in the collection
- Have an appwrite function that runs every minute or so and deletes sessions if they're older than an hour
Recommended threads
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...