Safari 15 keeps logging me out of several sites every week or so

I've increased "remove history items" to 1 month - no luck

I've disabled all extensions - no luck


Still there are some sites which keep me logged in, but google.com, youtube.com, facebook.com, ebay.com - they are all throwing me out every week.


Other browsers doesn't do that.

Safari 14 didn't do that.


Am I alone with this porblem?

MacBook Pro Retina

Posted on Oct 12, 2021 11:32 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 14, 2021 2:20 AM

I have the same problem, although not every week or so but rather several times a day – this does not feel good. I am fairly tech savvy and had "everything security and privacy" under control, I definitely don't like it when software overrides my previous settings without consent.

107 replies

Jun 7, 2022 11:06 AM in response to tal178

I’ve had Safari’s developer tools enabled since early April and somehow enjoyed a nice two-month spell that was free from this pestilent bug, but I suffered a relapse an hour ago after running some snippets of JavaScript in the console. My first clue: performing a Google search and noticing that the background color was white when my search results loaded. I’m a dark mode user, so I braced myself for the fallout: as expected, all my sessions with Facebook, Twitter, LinkedIn, GitHub, eBay, Amazon, and Gmail were gone.


Logging back into most of these sites results in a raft of security alerts that arrive via email and/or push notification. They all say variations of the same thing: “a login was detected from a new device we don’t recognize.” They usually contain links to the site so you can take immediate action to change your password. Somehow Google’s security page knows the name of my machine (SBP) and puts a little blue checkbox next to it, identifying it as “this device”. How Google ascertained that bit of private information is an alarming head-scratcher. Yes, I am logged into Gmail under “Internet Accounts” in macOS, but it’s curious how Google is able to correlate that connection with a “new device” it did not recognize minutes earlier.



So all of these big technology companies must be using a device-based login technique that relies on some kind of fingerprint they derive from the information Safari gives it, probably a hash generated by JavaScript from a number of factors. And somehow interacting with Safari’s web developer tools can corrupt that fingerprint and make us a total stranger to major tech sites.


I’m a web developer, but I only work on small-time sites that use unsophisticated cookie-based login sessions that have been around for decades. These types of sessions are still working fine in Safari 15. I would love to hear from a developer who works on big-time tech sites that rely on device-based login techniques. Their insight would be interesting.

Nov 26, 2022 1:31 PM in response to radozd

I may just be lucky, but after nearing a year of this problem I followed the first two steps in this post on the developer forums explaining how the user there fixed it by:

Resetting all experiments: Develop -> Experimental Features -> Reset all to defaults
Re-enabling Safari -> Preferences -> Privacy -> enable "Prevent cross site tracking" + enable "Allow privacy-preserving measurements of ad effectiveness" (I suspect this is the issue but not sure)

I initially had several sites log out once, but I haven't experienced any further unexpected logouts in over a week, even when using the console/inspector. I hope I didn't just jinx myself 🤞


I'm running Safari 16.1 on Ventura 13.0 and a 2.9 GHz Quad-Core Intel Core i7.

Oct 13, 2021 11:07 AM in response to radozd

Hello there radozd,



Thanks for posting here on the Apple Support Communities! This is a place where other Apple users can submit questions or respond to others to help lend a hand. Let's take a closer look as we do our best to provide some additional insight.


We understand some websites require you to sign back in more often than you're used to. Typically, this is controlled by the cookies or security settings as directed by the website itself. However, let's make sure Safari is set up to make sure they stay logged in as long as possible.


To get started, have you also tried completely resetting Safari by clearing all Safari history? We can do that by selecting Clear History from the Safari drop down menu next to the Apple icon.


Also, be sure to test with other Safari settings by going to Settings > Privacy. Some settings that help further protect your privacy and how websites can track you, can also lead to them signing you out sooner than expected: Change Privacy preferences in Safari on Mac



We hope this helps get you pointed in the right direction.


Take care.

Nov 2, 2021 9:20 AM in response to radozd

I have the same issue, I had opened a Feedback ticket/radar, but then closed it a week later because the problem disappeared. Unfortunately it is back. It really happens on many website all at once. For some sites it seems to forget everything that was stored locally on the client. For example the AWS web console usually remembers my account number and the services I last used. But after this "forceful" logout, everything is gone. It is as if I have never logged in to AWS before. It drives me nuts.

Nov 3, 2021 1:48 PM in response to radozd

I'm still having this problem and I've restarted multiple times. I'm up to date with Safari and Monterey. It's really disrupting my work flow. I'm getting logged out of absolutely any website that requires a login session multiple times a day. This includes


  • All google sites
  • All Atlassian sites
  • Lucid chart
  • Amazon


Just to name a few of the common ones. This started immediately with the Safari 15 update. I have changed zero security or privacy settings from 14 -> 15.

Nov 10, 2021 9:20 AM in response to radozd

It keeps randomly hitting me. I had the same issues after upgrading. Then it seemed to go away for about 10 days. Today, it's constantly reset itself. I'm getting sick of having to go through two factor authentication, to then repeat it again, half an hour later. The only difference between today's activity and yesterday is that I have Visual Studio running and had Safari set as my testing browser.

Nov 22, 2021 10:33 PM in response to radozd

У меня аналогичная проблема. Facebook, Yandex, Google, Youtube, Twitter, Instagram, VK и другие сайты. Техподдержка ничего не может сказать по этому поводу, кроме как "так и должно быть" или "возможно, это проблемы сайтов, которые вы используете". Но: во-первых, все сайты сразу не могут производить разрыв сессий; во-вторых, в других браузерах такого не наблюдается.


I have a similar problem. Facebook, Yandex, Google, Youtube, Twitter, Instagram, VK and other sites. Technical support cannot say anything about this, except as "it should be" or "maybe these are the problems of the sites you are using." But: firstly, all sites cannot immediately break sessions; secondly, this is not the case in other browsers.

Dec 9, 2021 6:17 AM in response to Astrovse

„prevent cross-site tracking“ doesn't help for sure.


Still, the problem is a weird one.

I had a whole week without being logged out.

Then several one by one within one day.

Emptied the cookies, got another logout after hour or two.


Maybe I'm paranoid, but It looks like someone "commands" safari to logout from outside...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari 15 keeps logging me out of several sites every week or so

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.