How to Stop WhatsApp Web from Logging Out Automatically (10 Working Fixes)
Tags: How to Stop WhatsApp Web from Logging Out Automatically
You are halfway through a client chat, you switch tabs for a minute, and when you come back, there it is: the QR code screen again. Grab the phone, open Linked Devices, scan, wait, repeat. Do this three times a week and it stops being a small annoyance and starts eating your workday.
The good news is that WhatsApp Web rarely logs you out for no reason. In most cases, one of a handful of things is behind it, and almost all of them can be fixed in a few minutes. This guide walks through why WhatsApp Web keeps logging out automatically and exactly what to change so you stay signed in.
Why Does WhatsApp Web Keep Logging Me Out?
Before the fixes, it helps to know what is actually going on. WhatsApp Web is not a separate account. It is a linked device attached to your main phone. If that link breaks, you get logged out. It usually breaks for one of these reasons:
- Your phone has been inactive or offline for too long
- The web session itself has sat unused for too long
- Your browser is deleting the login data WhatsApp saved
- You removed the device from the Linked Devices list, or logged out on the phone
- Battery saving settings are putting WhatsApp to sleep on your phone
- You hit the linked-device limit
- A reinstall, phone transfer, or number change reset your linked devices
Let’s go through each one.
1. Use Your Phone at Least Once Every 14 Days
This is the one that catches most people. WhatsApp’s multi-device system lets WhatsApp Web run even when your phone is switched off or not nearby. But there is a catch: if your primary phone stays inactive for around 14 days, WhatsApp logs out all your linked devices automatically.
This is a security rule built into the system. You cannot switch it off, but you can easily work around it. Just open WhatsApp on your phone now and then. If you have an old phone as your main device that sits in a drawer, this is almost certainly your problem.
2. Don’t Leave WhatsApp Web Completely Unused for 30 Days
Linked devices also expire on their own side. If a linked device, like WhatsApp Web on a laptop you rarely open, stays inactive for about 30 days, WhatsApp disconnects it. If you only use Web occasionally, open it at least once a month.
3. Tick “Stay Logged In” When You Scan the QR Code
It sounds too basic to matter, but many people skip it. On the WhatsApp Web login screen, look for the “Stay logged in on this browser” checkbox near the QR code. Tick it before you scan. Without it, your session can end more easily when the browser closes or restarts.
Do not tick it on a shared or public computer. More on that in the security section below.
4. Stop Your Browser from Deleting Cookies and Site Data
WhatsApp Web remembers you using data stored in your browser. If your browser wipes that data, WhatsApp has nothing to remember, and you land on the QR screen again. This is one of the most common causes on desktop.
Check these things:
- Clear on exit setting: In Chrome, Edge, or Firefox, make sure the option to clear cookies and site data when you close the browser is turned off.
- Add an exception: If you like strict privacy settings, add
web.whatsapp.comto the list of sites that are always allowed to save data. - Cleaner apps and extensions: Tools that “clean” your PC or browser often delete site data automatically. Exclude your browser from them, or whitelist WhatsApp Web.
- Manual clearing: Clearing cookies yourself will log you out. If you clear your cache regularly, choose to keep cookies for this site.
5. Avoid Incognito and Private Windows
Private browsing deletes everything when you close the window. That means every session is a fresh login. If you want to stay signed in, use a normal browser window.
6. Turn Off Battery Optimization for WhatsApp on Your Phone
Sometimes the issue sits on the phone, not the computer. On many Android phones, aggressive battery saving puts WhatsApp to sleep in the background, which can cause the connection to drop and the web session to fail.
On Android, go to Settings → Apps → WhatsApp → Battery and set it to Unrestricted (the wording changes slightly by brand). On Xiaomi, Oppo, Vivo, Huawei, and Samsung phones, there is often a second, brand-specific battery manager or “auto-start” setting. Allow WhatsApp there too.
On iPhone, make sure Background App Refresh is on for WhatsApp under Settings → General → Background App Refresh.
7. Check Your Linked Devices List
On your phone, open WhatsApp and go to Settings → Linked Devices (on Android, tap the three dots first). You will see every device currently linked to your account.
- WhatsApp allows up to four linked devices alongside your main phone. If you keep adding laptops, tablets, and extra phones, older sessions may get kicked out.
- Remove devices you no longer use.
- Make sure you did not accidentally tap “Log out” on the browser session you actually want to keep.
If you see a device you don’t recognise, log it out right away.
8. Update WhatsApp and Your Browser
Old app versions and outdated browsers can cause session errors. Update WhatsApp from the Play Store or App Store, and update Chrome, Edge, Firefox, or Safari to the latest version. After updating, restart both and log in once more.
9. Be Careful with VPNs, Proxies, and Shared Networks
WhatsApp watches for unusual activity as part of its security checks. If your connection keeps jumping between countries or IP addresses, because of a VPN that keeps switching or an unstable proxy, your session may get interrupted. Use a stable connection while you work on WhatsApp Web, and if you use a VPN, stay on one server.
Also keep in mind that automation tools and bulk-messaging extensions can trigger logouts, and may risk your account.
10. Switch to the WhatsApp Desktop App
If the browser keeps giving you trouble, try the official WhatsApp Desktop app for Windows or Mac. It handles sessions separately from your browser settings, so cookie clearing, extensions, and tab crashes don’t affect it. It is still a linked device, so the 14-day phone rule applies, but it removes a lot of browser-related problems.
What You Cannot Change
It’s worth being honest here. WhatsApp deliberately logs you out if your phone stays inactive for too long, and it also does so after long periods of no use on a linked device. There is no setting to make a session permanent. Anyone promising a trick to bypass this is either wrong or trying to sell you something. The goal is to remove the avoidable causes, not fight WhatsApp’s security design.
A Quick Security Note
Staying logged in is convenient, but it also means anyone with access to that computer can read your chats. Use “Stay logged in” only on your own personal device. On office, shared, or public computers, log out when you finish. You can also log out remotely at any time from your phone under Linked Devices.
Quick Checklist: Fix It in 5 Minutes
- Open WhatsApp on your phone to confirm it is active and online
- Log out of WhatsApp Web, then scan the QR code again with “Stay logged in” ticked
- Allow cookies and site data for
web.whatsapp.comin your browser - Set WhatsApp battery usage to Unrestricted on your phone
- Remove unused linked devices
- Update WhatsApp and your browser
If it still happens after all of this, the Desktop app is your best next step.
Frequently Asked Questions (FAQs)
Why does WhatsApp Web keep logging me out even when my phone is on?
The most common reasons are browser settings that clear cookies, an aggressive battery saver on your phone, or a removed device in the Linked Devices list. Check your browser’s cookie settings first, then your phone’s battery settings.
How long does WhatsApp Web stay logged in?
There is no fixed timer while you use it regularly. However, your linked devices get logged out if your main phone is inactive for around 14 days, and a linked device itself can be disconnected after about 30 days without use.
Does WhatsApp Web work when my phone is switched off?
Yes, for a limited time. Thanks to multi-device support, your phone doesn’t need to stay connected all the time. But if it stays off or inactive for roughly 14 days, WhatsApp Web will log out.
Can I keep WhatsApp Web logged in permanently?
Not permanently. WhatsApp’s security rules will always expire very old or inactive sessions. But if you use your phone regularly and fix the browser and battery settings above, you can stay logged in for months without trouble.
Why does WhatsApp Web log out when I close the browser?
Usually because your browser is set to delete cookies and site data on exit, or you are using a private window. Turn off that setting or whitelist WhatsApp Web.
How many devices can I link to WhatsApp Web?
You can link up to four devices at once, in addition to your main phone. If you go over the limit, you will need to remove an older one.
Does clearing my browser cache log me out of WhatsApp Web?
Clearing cache alone usually doesn’t, but clearing cookies or “site data” will. When cleaning your browser, uncheck cookies, or keep them for WhatsApp Web.
Why does WhatsApp Web ask for the QR code again and again on Chrome?
Check that cookies are allowed, that no cleaning extension is wiping data, and that you are not in Incognito mode. Updating Chrome and relinking with “Stay logged in” ticked fixes it for most people.
Is it safe to stay logged in to WhatsApp Web?
It is safe on a personal device you control. On shared or public computers, always log out when you are done.
Is the WhatsApp Desktop app better than WhatsApp Web for staying logged in?
Often, yes. Since it doesn’t depend on browser cookies or extensions, it is usually more stable. It still follows the same 14-day phone activity rule.
