WhatsApp Web Keeps Logging Out: Common Causes and Safe Fixes
WhatsApp Web is supposed to stay signed in on a computer you trust. If it logs you out every day, or every time the browser closes, the cause is usually on the computer side: cookies being deleted, a browser profile that resets, an extension clearing site data, or the phone removing the linked device. Less often, you have hit the linked-device limits or your phone has been offline too long. The fixes below start with the browser, because that is where most repeat logouts come from.
Understand what keeps you signed in
WhatsApp Web works as a linked device. When you scan the QR code, your browser stores a local session, including cookies and site data for web.whatsapp.com, and your phone keeps that browser listed under Linked Devices. If either side loses its record, you are logged out. The browser deleting its stored data is the same as you choosing "Log out" yourself, even if you never clicked it. That is why the first checks are all about whether your browser is allowed to remember the site.
Stop the browser from deleting WhatsApp's data
- In Chrome, go to Settings > Privacy and security > Third-party cookies (wording varies slightly by version) and make sure web.whatsapp.com is not blocked. If you use "Block third-party cookies" or a custom setup, add web.whatsapp.com to the list of sites allowed to use cookies.
- Check the setting that clears cookies when you close the browser. If "Clear cookies and site data when you close all windows" or a similar option is on, WhatsApp Web will log out at every browser restart. Turn it off, or add an exception for web.whatsapp.com if your browser supports per-site exceptions.
- In Firefox, check Settings > Privacy and Security. If "Delete cookies and site data when Firefox is closed" is enabled, add web.whatsapp.com under Manage Exceptions.
- Look at your extensions. Privacy, cleaning, and "auto cookie delete" extensions often remove site data on a timer or at shutdown. Whitelist web.whatsapp.com in any such extension, or disable the extension and test for a day.
- Avoid using WhatsApp Web in a private or Incognito window if you want to stay signed in. Private windows are designed to forget everything when closed, so a logout there is expected behaviour, not a fault.
If you share the computer, also consider that browser profiles matter. Signing into a different Chrome profile, or the browser's guest mode, means a different stored session. Always open WhatsApp Web in the same profile you linked it from.
Check the linked device on your phone
- On your phone, open WhatsApp and go to Settings > Linked devices (on Android, tap the three dots and choose Linked devices).
- Find the browser session in the list. If it shows a "Last active" time that stopped days ago, the link may already be stale.
- WhatsApp supports up to four linked devices at once, in addition to your phone. If you regularly link new computers or browsers, older sessions can be displaced. Remove sessions you no longer use by tapping them and choosing Log out.
- Keep your phone connected. Linked devices can work independently for a period, but if your phone stays offline for an extended time, WhatsApp can log linked devices out for security. If your phone was off, out of signal, or in a drawer for days, expect to re-link.
- Make sure WhatsApp on the phone is not being aggressively battery-restricted, which can interfere with the connection linked devices rely on. Setting it to Unrestricted battery use helps on many Android brands.
If a session in the list is one you do not recognise, log it out immediately and review your account security. That situation is different from a browser forgetting you, and it deserves the same caution covered in our guide to WhatsApp account problems and the appeal process, which explains how WhatsApp treats account security issues.
Network and browser health checks
Some networks and browser states cause repeated disconnects that end in a logout:
- Work or school networks may block or reset the long-lived connections WhatsApp Web needs. If logouts only happen on that network, the network is the likely cause, and there may be no local fix.
- VPNs that change location frequently can trigger fresh security checks. Test with the VPN off for a day.
- Out-of-date browsers can fail to maintain the session properly. Update Chrome, Firefox, Edge, or your browser of choice to the latest version.
- Wrong system time on the computer can break secure sessions. Set the computer's date and time to automatic.
- Corrupted site data can cause a loop of linking and logging out. Clear site data for web.whatsapp.com only (in Chrome: Settings > Privacy and security > Site settings > View permissions and data stored across sites, search for WhatsApp), then link once more and watch whether it holds.
While you are reviewing browser habits, note that staying signed in and staying private are a balance. The privacy options discussed in our list of WhatsApp tricks most people have not tried include several that pair well with a work computer setup.
Re-link safely, the right way
- Only link from the official address: type web.whatsapp.com yourself rather than following a link from a message or search ad. Fake WhatsApp Web pages exist and are built to steal accounts.
- Scan the QR code using the scanner inside WhatsApp's Linked devices screen, not your phone's general camera app.
- Tick "Keep me signed in" on the WhatsApp Web screen before scanning, where that option is shown.
- Never share a QR code screenshot or scan a code someone else sends you. Linking gives that browser access to your chats.
- On a shared or public computer, log out when you finish: click your profile picture or the menu in WhatsApp Web and choose Log out, or remove the session later from Linked devices on your phone.
FAQ
Why does it log out every time I close the browser?
That pattern almost always means cookies and site data are being cleared at shutdown, by a browser setting, a private window, or a cleaning extension. Fix the setting or whitelist web.whatsapp.com, and the session should persist.
Is it normal to be logged out after not using it for a while?
Yes, in some cases. Long inactivity, a phone that stayed offline for an extended period, or hitting the four-device limit when linking something new can all end an old session. Re-linking takes under a minute once the cause is clear.
Does logging out of WhatsApp Web delete my chats?
No. Logging out only ends that browser's access. Your chats remain on your phone and in your account's backup, and they reappear when you link again.
The safe next step
Check the cookie and site-data settings in the one browser you use most, whitelist web.whatsapp.com in any cleaning extension, then re-link once from the official site. If it survives two full browser restarts, the problem is solved. If it still drops, remove stale sessions under Linked devices on your phone and check whether your phone itself has been offline or battery-restricted.

