How to Stop Safari Signing You Out of Websites Every Time You Close It

Re-entering your username, password, and two-factor verification code on Gmail, work dashboards, and shopping sites every morning simply because you quit Safari last night wastes minutes every day. Safari normally remembers website login sessions safely for weeks; when it logs you out on every quit, either Block all cookies got switched on, Safari is reopening into a Private Browsing window, or a cleaning utility is wiping Safari cookies in the background.

Fix 1: Verify “Block All Cookies” Is Turned Off in Safari Privacy Settings

Blocking every cookie prevents websites from storing the tiny session token that proves you already signed in.

  1. Open Safari on your Mac, click Safari in the top menu bar, and select Settings (or press Command + Comma).
  2. Click the Privacy tab at the top.
  3. Make sure Block all cookies is unticked (on newer macOS Sequoia and Sonoma releases, click Advanced… inside Safari Settings to inspect Block all cookies if it was moved there).
  4. Leave Prevent cross-site tracking ticked if you prefer normal privacy protection; cross-site tracking prevention still allows standard site logins to stay signed in cleanly.

Fix 2: Make Sure Safari Is Not Opening Into Private Browsing Automatically

Private Browsing windows have dark grey address bars and wipe every cookie and login token the instant you close the window or quit Safari.

  1. Open Safari > Settings > General.
  2. Inspect the very first dropdown menu labelled Safari opens with:.
  3. Make sure it is set to A new window or All windows from last session – never A new private window.
  4. If your current window has a dark grey/black URL bar saying Private Browsing Enabled, press Command + N to open a normal Safari window and close the private window.

Fix 3: Clear Corrupted Cookie Storage for Just the Misbehaving Site

When only one specific website (such as Microsoft 365, a bank, or an online forum) drops your session on restart while all other sites stay logged in, a damaged cookie file is preventing Safari from updating the session token.

  1. Open Safari > Settings > Privacy and click Manage Website Data….
  2. Type the website’s domain name in the top search bar, select it, and click Remove (or follow our guide on clearing cookies and cache for just one website in Safari).
  3. Sign in once more in a regular Safari window and tick Stay signed in if the website offers it.

Fix 4: Check Third-Party Mac Cleaners and iCloud Private Relay

  • CleanMyMac, CCleaner, or antivirus browser cleaners: Many third-party Mac utilities include scheduled privacy sweeps that delete browser cookies automatically when Safari closes. Pause browser-data cleanup rules in those apps to test.
  • iCloud Private Relay / VPN IP shifts: Strict banking or corporate SSO portals immediately invalidate your login cookie whenever your IP address jumps regions mid-session. If one specific portal keeps kicking you out, open the site, click View > Reload and Show IP Address briefly to confirm whether changing IP addresses triggered the logout.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.