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
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...