Wednesday, 24 March 2021

How to logout/sign out from WhatsApp?

 

Hello friends, today I am going to explain logout in WhatsApp.  If you open your WhatsApp you will not see logout option anywhere that means you cannot logout, explicitly, from WhatsApp.

Actually WhatsApp authenticate user by sending OTP to their mobile number. When user enters correct OTP it is authenticated. But the OTP is valid for one time use only. It’s not like a password.

When a user is authenticated, an instance is created in their mobile memory. In programming terminology it is stored in shared preferences. Now, whenever user opens WhatsApp application, it checks that instance. If it has been created that means user/mobile phone has been authenticated and is allowed to the WhatsApp.

This instance is not associated with the mobile number instead it is associated with mobile phone. E-g if someone change SIM card in mobile phone and connect to Wi-Fi WhatsApp will work normally as the mobile phone have the instance. Now if user destroys this instance and open WhatsApp. It will be asked for authentication again. So destroying the instance is one type of log out. So, how to destroy this instance?

Go to mobile setting -> manage apps. Then click on WhatsApp as shown in the following snap.


In the bottom click “Clear data”. It will clear all data including that instance. So now, when you open WhatsApp it will ask for authentication as now the mobile phone does not have the instance.

THATS IT. Thank you

No comments:

Post a Comment