Safari keeps logging me out...
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)
Mac OS X (10.6.3)
Alan Pinstein wrote:
Also, note that I think maybe all session cookies are dropped when this happens; I often notice that when I get logged out in one tab from this "bug", when I go to other tabs and continue to browse I am usually asked to re-auth on those completely different web sites as well.
rushproject wrote:
Alan Pinstein wrote:
Also, note that I think maybe all session cookies are dropped when this happens; I often notice that when I get logged out in one tab from this "bug", when I go to other tabs and continue to browse I am usually asked to re-auth on those completely different web sites as well.
Just to confirm your observation: it looks like Safari drops all transient cookies at once at least in all open tabs within single window. By the way, did you use multiple tabs/windows or just one tab in single window is enough to drop session cookie? I always have about 10 tabs open in my "workflow" Safari window. Just trying to narrow research range...
Elias Martinez wrote:
I had the same problem. One of the most annoying I have had. Seems to have been a Safari problem that has been fixed with Safari 5.0.1
DisneysFolly wrote:
So this problem has now been around for FOUR MONTHS, a third of the year, and still no fix. Still the same problems every day. And not one fix from Apple. This is ridiculous. I switched over to this platform specifically to avoid this kind of nonsense i was dealing with on PCs.
barbutti47 wrote:
If you're a web developer (like me) facing this issue with your web site, I found a possible way to workaround it. The concept is basically to re-create a new session cookie, duplicating the data that was already stored in the previous session cookie.
If you're in PHP, this is what I'm talking about (I'm sure other languages have similar functions): http://php.net/manual/en/function.session-regenerate-id.php
By calling this every now and then (for my app, once every 50 calls -- you'll have to balance accordingly to your app), Safari ends up always having a recent session ID cookie instead of any old one -- and from my tests over here that stops it from losing the data.
Alan Pinstein wrote:
barbutti47 wrote:
If you're a web developer (like me) facing this issue with your web site, I found a possible way to workaround it. The concept is basically to re-create a new session cookie, duplicating the data that was already stored in the previous session cookie.
If you're in PHP, this is what I'm talking about (I'm sure other languages have similar functions): http://php.net/manual/en/function.session-regenerate-id.php
By calling this every now and then (for my app, once every 50 calls -- you'll have to balance accordingly to your app), Safari ends up always having a recent session ID cookie instead of any old one -- and from my tests over here that stops it from losing the data.
This won't work, at least not unless you do it every call. The cause of the problem is that safari spuriously not sending the session cookie on a request. Thus unless (and maybe even if) you send a new session cookie on every request, then when safari "fails" you will lose you session.
From our tests, it works. We were also getting logged out all the time, now we're 2 straight days connected. So it's an idea if developers are looking at this thread trying to figure out what's happening.
Safari doesn't send the session ID at a certain calls because it expires the cookie earlier than it should. Regenerating it every now and then, fixes this expiration problem by keeping the cookie fresher.
Again, it worked from our tests and in our webapp. Could be useful for other developers.
NP Complete wrote:
Alan: do the session cookies actually disappear from the Cookie dialog in Safari's prefs?
Safari keeps logging me out...