Safari keeps logging me out...

I have had this problem ever since the update. I log into my websites and within 10 mins I am logged out and have to keep logging back in.

Anyone else have this problem?

I am using Leopard 10.6.3... Safari 4.0.5... Macbook Pro.

Help!?!?!

Mac OS X (10.6.3)

Posted on Apr 5, 2010 2:42 AM

Reply
242 replies

Mar 3, 2012 12:06 PM in response to blackbeardesign

blackbeardesign wrote:


Hi all, this isnt a bug, its a security feature of Safari and there is no way to disable it. It is the worst feature Apple has every introduced. I actually switched to Chrome. Nice job Apple, first time in history I ever switched AWAY from you.

There must be some way to revert via Terminal?


No way... I don't want to believe you! (Just sounds so un-Apple... even since Steve died I've really been noticing things...)

Mar 3, 2012 2:41 PM in response to blackbeardesign

I'm pretty sure it isn't a feature, and is in fact a bug. I think if someone at Apple told you it was by design, it's because they didn't have an answer for you and just wanted you to go away. It must be a hard problem to fix, because it's been around a long time. For me, it's very intermittent. I haven't seen it in months, but when I last saw it, it happened every day for weeks.


The handling of cookies (which is where your web account login information is stored) is fairly standardized and Safari is supposed to adhere to these standards. For one thing, they are supposed to honor the expiration timestamp in the cookies, and Safari does not always do this.


I started a thread on this here, which no one ever commented on, perhaps because they didn't get the link between cookies and "logging me out". https://discussions.apple.com/thread/3266916


Basically, I verified that the cookies for the site I was interested in expired well ahead of their expiration time. And it wasn't just culling for space, because first of all I was no where near any limits, and more importantly, the cookies were deleted, while other older cookies with earlier expiration dates were left alone.


All the cookies are stored in your home folder in Library/Cookies/Cookies.plist. They're all stored in a single file, which is fully rewritten as needed when cookies are changed. There's no way that I can see that a permissions repair or a reinstall is going to fix this. Something is specifically deleting the wrong cookies from the file. It can only be some kind of programming error that occurs in only some obscure circumstances.


tom

Mar 3, 2012 2:46 PM in response to Rudolfensis

As far as reverting, since cookies are stored in a plist file, you could use commands to grab the desired cookies when they're there, and then watch the file, and put them back if they disappear. With any luck, you wouldn't even have to restart Safari for this to work, since it seems like the cookies are designed to be shared among multiple applications (hmm - if that's the case then maybe something besides Safari is responsible?).


tom

Mar 14, 2012 9:23 PM in response to Whatsup97

Safari worked for months for me with Yahoo and always kept me signed in. Then my Yahoo account was hacked. My password was very secure and it seemed impossible that somebody could have obtained it. I ran two virus programs on the mac and removed any and everything that even might have assisted in the hack and related to Yahoo, unfortunately I did not keep tract of what they were.


Now, I get signed out of Yahoo automatically after about 3 hours on Safari but not when using Firefox. The odd thing is, I have two almost identical MacbookPros. The one I did not run the anti-virus software on keeps me signed into Yahoo when using Safari, the other signs me out.


This information is being provided in the hope that somebody can connect the dots. Today, I downloaded a complete version of Safari 5.1.4 and installed it over the old Safari, as I could not delete Safari (required app error). I signed back in, and selected the two week option, as I have always done in the past. I am still signed in, three hours post the installation.


I hope the complete new Safari install is a fix. Will update the forum tomorrow. Also, I had previously deleted all history and all cookies from Safari, and it did not help with the sign-out issue.

Mar 15, 2012 10:29 AM in response to Flori72

The Safari Adblock webpage says that it is not compatible with Safari version 5. Although it's possible the page I looked at was out of date.


It's entirely possible that deleting cookies might be something that Adblock would do. If it mistakes your login cookies for ad cookies, it might well delete them. I believe that Adblock has some kind of whitelist feature. Perhaps adding the sites you're having problems with to the Adblock whitelist might help?


And reinstalling Adblock would make sense, as that might reset any database it uses to help it decide what the good and bad sites are.


However, I've never used Adblock, and I've seen this problem several months ago. I was under the impression that I had no extensions, however I do apparently have Google Toolbar installed. That shouldn't touch cookies but you never know.


All just guessing.


tom

May 22, 2012 8:08 AM in response to Whatsup97

I'm having this issue, too - all of a sudden. Safari keeps refreshing itself and logging me out of sites at the same time. At first, I thought it was just with gmail, but now it's happening with all sorts of other sites (including this one - I had to log in twice to type this message and feel like I'm racing the clock to get it typed). Did anyone figure out a fix for it?

Jun 13, 2012 7:37 PM in response to Whatsup97

This is NOT right! I upgraded from 10.6x to 10.7.3 last week. This issue has appeared suddenly, sometimes it logs me out on the first clicked link seconds after logging in.


I trashed everything Safari except bookmarks, downloaded and manually installed a new version but the problem doesn't go away. The other bad news is that .. this problem doesn't exist in Chrome. Am i forced to buy and try OS 10.8 next month just for wanting to stick with apple's own browser?

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 keeps logging me out...

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