Latest: Genstatic, my first sip of coffee

Content with Style

Web Technique

Firefox 3 keeps logging me out. Not any more it's not.

by Matthias Willerich on September 1 2008, 09:51

Like many others I’ve been enjoying Firefox 2’s ongoing session functionality that had me logged in on frequently used sites. This recently changed with the Firefox 3 upgrade. All of a sudden Basecamp and some other random sites kept asking for my login.

At first I thought that maybe Basecamp changed policies, or that some rolled out code went wrong. That went until last Friday, when I stopped ignoring the “remember me” checkbox, which also failed and an old client of mine contacted me and stated the same problem for a website I built for them ages ago. Now, when other people’s code breaks, that’s one thing, but of course I couldn’t let it lie if it’s my stuff, legacy or not.

Today I got around researching the problem and found this all-explaining forum post on mozillazine . Seems that some people’s upgrade has corrupted the cookies database, which moved from cookies.txt to cookies.sqlite, with varying and downright weird consequences, like the guy who seemed to be able to log into 10 sites, and the 11th killed them all.

Some of the suggested solutions involve safe-mode and digging through add-ons (as some apparently trigger said safe-mode or break other functionality), others claim it has something to do with the way you quit firefox, but mine was as simple as this:

I shut down my browser and deleted both my cookies.txt and cookies.sqllite files, then restarted the browser. Worked like a charm. Apparently the files had gotten corrupted somehow, and session information was not being saved correctly. It took a complete purge to start again from scratch.

That’s all, and not a grey hair in sight.

Comments

  • Thank you so much! I have been trying to figure this out for about a week now. It's amazing how something so simple can just make or break your day! Thanks again.

    by LMMM on November 21 2008, 01:52 - #

  • Thanks! I think mine corrupted a couple of weeks ago when my laptop ran out of power... (battery is broken). I was thinking - what have I changed?

    by Nic Doye on December 6 2008, 18:19 - #

  • Gotta love that Firefox winning formula. See what Opera does...then do exactly that. For a moment I thought Firefox was innovating with its "awesome bar" and even read several books on this problem But upon inspection, I found that typing "awesome bar" in opera displays...this page.

    by gert on July 1 2009, 12:22 - #

  • Yeah, but why does the cookies.sqllite files keep corrupting every few hours/days? I have to remove the things every few days because the problem keeps coming back!

    by Cryptic on September 21 2009, 00:37 - #


Comments for this article are closed.