Back

[SOLVED] Behavior after blocking an user

  • 0
  • Users
  • Flutter
  • Accounts
PromILLEpapst
28 Aug, 2023, 13:06

Hey guys,

what is the intended behavior when I block an user which has an active session right now? Is it comparable to an IP-ban?

I have a Flutter web app which loads perfectly fine on Google Chrome, Safari and so on.

Step 1: Signing user in on web app on Google Chrome -> Everything fine Step 2: Block Account in the appwrite backend Step 3: Any action in the web app -> Nothing is loading anymore properly which is good Step 3: Opening the web app on Safari (not signed in) -> Nothing is loading anymore properly

TL;DR
The user had an issue with the behavior after blocking a user on their web app. They discovered that the problem was due to an old session on Safari. Deleting all sessions resolved the issue. The user asked if it is a good approach to delete all sessions when blocking a user, to which there was no clear answer provided. The user also asked how long sessions are stored, and it was suggested to check the Auth Security Tab for that information.
Drake
28 Aug, 2023, 16:28

Only the account itself is blocked. You might still have a session in safari...can you try opening a private browsing window?

PromILLEpapst
29 Aug, 2023, 06:23

You were right. It was about an old session on Safari. (I asked the person I was testing it on and he told me that he has not been using Safari for the web app before - maybe he forgot). After deleting all sessions before going through the steps, it worked the intended way.

But still:

  • Is it a good approach to delete all sessions when blocking a user? There might be another one trying to access the web app from this computer and browser.
  • How long are sessions stored? -> Auth Security Tab ✅
Drake
29 Aug, 2023, 16:47

That sounds like a good feature request. Would you be able to create a GitHub issue for it?

PromILLEpapst
30 Aug, 2023, 07:00

Just created one https://github.com/appwrite/appwrite/issues/6061 - Thank you very much for your responses so far 🙂 Should this be marked in any way since there wont be a discussion here anymore I suppose

Drake
30 Aug, 2023, 15:52

Thank you! You can update the title of the post with the prefix [SOLVED]

PromILLEpapst
31 Aug, 2023, 06:22

[SOLVED] Behavior after blocking an user

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