
How can i get the user "[SESSION_ID]"
to log them out using this function for example:
TypeScript
Account account = new Account(client);
account.deleteSession(
"[SESSION_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);
TL;DR
The user is trying to figure out how to log out a user by deleting their session using a specific function in an Android Kotlin SDK. The solution provided is to use the keyword `'current'` as the Session ID if you want to delete the current session. Additionally, a code snippet is given as an example of how to implement this function in Java.
If its the current user can log them out by deleting the current session

if you want to delete the current session, just use 'current'
for the Session ID


Oh I missed that. dumb me. Thanks

[Solved] sessionId

SOLVED] sessionId

[SOLVED] sessionId
Recommended threads
- Document Data is null.
I'm using flutter and I've just got everything set up, the document meta data is null but the actual query is fine. (see screenshot) The permission I have ar...
- Flutter native Google Sign Up with googl...
Hey I want to use the native login instead of the WebView. Do you have any experience on that and has Appwrite to plan this support?
- Error: Invalid `userId` param: Parameter...
