Skip to content
Back

session persistence in flutter .. how?

  • 1
  • Flutter
  • Cloud
hani
28 Feb, 2025, 19:01

i noticed that calling (await account.get()).email in flutter does return a valid email that i had used previously, the thing is ... this is all in debug mode, and i didnt implement any sort of persistence mechanism, tried deleting all app related data and clean build .. and it still returns valid user, is it using the ip address ? cuz that feels mad insecure !! and i cant find the documentation that explains session management beyond the initial authentication.

TL;DR
Developers are seeking help with session persistence in a Flutter app. They want to know how to get the storage location for web platforms and are concerned about security when retrieving user data in debug mode. Solution: For local storage and cookie-based session persistence in Flutter, developers can refer to the path_provider package for storage location, but note that it doesn't support the web platform. Also, to logout the current session and implement session management beyond initial authentication, they can check the resources provided at https://appwrite.io/docs/references/cloud/client-flutter/account#deleteSession and https://appwrite.io/docs/products/auth/security#persistence.
Sandipan Singh
28 Feb, 2025, 19:22

@hani

If you want to logout the current session read this:

https://appwrite.io/docs/references/cloud/client-flutter/account#deleteSession

hani
28 Feb, 2025, 19:37

itmentions that the flutter sdk uses the path_provider package to get the storage location ... but that package doesnt support the web platform so how can i know the location apps compiled for the web

Steven
28 Feb, 2025, 19:43

local storage and cookie

hani
28 Feb, 2025, 19:46

thnx

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