Safari 5 + Lion. Please don't remember my open tabs!

Discussion in 'Mac OS X Lion (10.7)' started by senc01a, Jul 21, 2011.

  1. senc01a macrumors regular

    May 31, 2007
    Hi all,
    Does anyone know how to tell Safari NOT to remember which tabs I had open before I quit last time?
    I don't really like that behavior, I like it when every time I start Safari it is clean and beautiful.
  2. Stiss macrumors 6502a

    Apr 18, 2009
    Thats your real query!

    And no, I don't know how to fix it.
  3. bushido Suspended


    Mar 26, 2008
    it's part of "resume" i dont think u can really do anything about it unless u turn off the whole feature if im not mistaken
  4. netnothing macrumors 68040


    Mar 13, 2007
    You either have to turn off the "Resume" functionality system wide or when quitting an app....instead of Command + Q to quit, use Option + Command + Q.

  5. cdembek macrumors regular

    May 14, 2008
  6. saving107 macrumors 603


    Oct 14, 2007
    San Jose, Ca
    Uncheck this box.

  7. cdembek macrumors regular

    May 14, 2008
  8. cells macrumors newbie

    Apr 8, 2007
    I found a decent application-specific solution: swapping the keybindings for Quit and Quit and Discard in the Keyboard preferences.

    Attached Files:

  9. solarguy17 macrumors 6502a

    Sep 10, 2007
    i dont like this feature either. its annoying, in fact have that autocheck when you log out as restart windows when logging back in, also really annoying.
  10. Slov macrumors newbie

    Feb 29, 2008
    unchecking this box does not solve the problem of still having the ability to "reopen all windows from last session" under history. even under private browsing, clearing cache, and resetting safari, i still have the ability to reopen windows from last session (with the resume feature unchecked).

    is anyone else experiencing this problem?
  11. LoganT macrumors 68020

    Jan 9, 2007
    If you use the private browsing feature, it doesn't remember it.
  12. Slov macrumors newbie

    Feb 29, 2008
    that's the problem. i'm using private browsing. but i still get presented with the option to "reopen all windows from last session" when i restart safari. i also have the resume feature unchecked - mentioned in a few posts above.
  13. LoganT macrumors 68020

    Jan 9, 2007
    How do you restart Safari? If I Command+Q out of Safari, when I open it again it shows my last pages I was on. If I have private browsing on it opens the home page. It doesn't even ask me anything.
  14. Slov macrumors newbie

    Feb 29, 2008
    i just go to the drop down and quit safari. yes, upon a new browsing session, mine will just open the home page as well. but i'm referring to the "history" drop down menu. Under there i still have the option to "reopen all windows from last session." if i choose it, it will in fact open the last tabs i had open.

    there doesn't appear to be any rhyme or reason with its behavior. if i close all individual tabs and then exit safari, when i reopen safari i still have the option to restore tabs from a previous session to the last one under the history menu.

    i've tried clearing history, resetting safari, empty cache, and the option is still there. All while surfing under private browsing and having the resume feature disabled.
  15. cocacolakid macrumors 65816


    Dec 18, 2010
    You can use a Terminal command to stop this on any specific App.’s_early_problems

    The last tip in that article has it:

    "By default, OS X Lion now attempts to get you back to work sooner by opening the files you were last viewing upon launch. While it’s a nice feature for many apps, there may be cases where you don’t want prying eyes to see what you were last viewing. The System Preferences > General tab has an option for getting rid of the feature entirely (simply uncheck “Restore windows when quitting and re-opening apps”), but there’s a better way to handle it on an app-by-app basis, courtesy of developer Wil Shipley.

    First you’ll need to know exactly which app you want to kill this feature on -- we’ll use Preview as an example, since it may not be desirable to have it restore documents in most cases. Fire up Terminal again and use the following command without quotes: “defaults write NSQuitAlwaysKeepsWindows -int 0”. For other applications, simply replace “Preview” with the name of the app -- when in doubt, visit your Preferences folder to confirm how the app name appears in the “” file this is modifying."


    To see the exact way an App name appears, make sure the Finder is selected so the Finder menu appears, then up left near the Apple logo on the desktop bar click Go To, then Go To Folder, and type in ~/Library. Then in the window that opens, click on Preferences. You'll see a list of files, don't click on any. Just scroll down to the area to see how the app you want to change appears. In this case, Safari is what one would expect, Safari with a capitol S.

    So the command to type or copy and paste into Terminal is:

    defaults write NSQuitAlwaysKeepsWindows -int 0

    Then hit enter.

    Close and restart Safari, next time you restart the computer Safari (or whatever other App(s) you ran that on) should not resume automatically from the last saved state.
  16. greyparrot macrumors newbie

    Jul 22, 2011
    Thanks for this, I was about to change my browser because of this problem.

    If I want to reverse this how do I do it? My guess is to change 0 to 1.
  17. AndersHP macrumors newbie

    Jul 2, 2011
    Thanks - only problem: Now Safari doesn't remember to auto-fullscreen either...

Share This Page