Where are Safari's cookies stored?

Discussion in 'Mac Apps and Mac App Store' started by ArtOfWarfare, Feb 5, 2009.

  1. macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #1
    All anyone else seems to ever want to do with their cookies is delete them...

    I want to go in and modify mine so they expire on different dates. I want to add back various cookies that have already expired too. I'd like to just get access to the cookies. Does anyone know the path to them? (What a useful path Safari offers... "/"... oh yeah... thanks... it's at the root of something... whether that's the root of my library, the root of the safari application bundle's resources, the root of the user library, the root of the computer itself, the root of the harddrive... absolutely no way of telling.)

    I've found this much out about it... apparently all the browsers store their cookies in the same file. So I think it's probably not in any specific application bundle or specific application library. But I still can't find it.

    Surely someone has to know where these things are stored!
     
  2. macrumors 68020

    yippy

    Joined:
    Mar 14, 2004
    Location:
    Chicago, IL
    #2
    I don't know the exact location but I do know that it is going to be in ~/Library, probably Application Data/Safari but I don't know for sure. I would search for it and tell you the exact location but I am not at a Mac right now.
     
  3. thread starter macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    :) Thanks!

    I think I finally found it!

    I didn't think to check the User libraries before... I had only checked the root library and the system library.

    (They're stored in (user account name)"/Libraries/Cookies/Cookies.plist" for those who are interested.)

    Now we'll see if I can copy them in from my other computer...
     
  4. macrumors member

    Joined:
    Jul 9, 2009
    #4
    I found mine under Library - I nly have one cookie though - should I delete it or eat it?
     
  5. macrumors member

    Joined:
    Dec 17, 2007
    #5
    Mavericks Safari 7 cookies location

    In Safari 7 on Mavericks, they seem to be stored in:

    ~/Library/Cookies/Cookies.binarycookies

    They're in binary format (obviously). You can see them in human readable format by using the instructions here:

    http://www.macobserver.com/tmo/article/see-full-cookie-details-in-safari-6

    Although, they are a bit outdated, because Safari 7 has a slightly different UI in its Develop->Web Inspector panel. (You need to click on the "Resources" icon in the Web Inspector panel, then look down in the list below it for the Cookies icon.)
     

Share This Page