Hi,
I've tried the defaults write com.apple.Safari ApplePersistenceIgnoreState YES as suggested by various people and I get "Could not write domain /Users/userid/Library/Preferences/com.Apple.Safari.plist; exiting.
I tried resetting Safari, it came back with four windows open from a session the day before yesterday. Is it possible that somehow, file permissions have got messed up somehow.
If I go into System Preferences -> General, and take the tick out of "Restore Windows when quitting and re-opening apps", open Safari and then go back to System Preferences -> General, the tick is back in the box.
Since upgrading to Lion, some strange things have been happening with folders in my Movies and Documents folder. If I copied a file to one of these folders, it would not inherit the permissions of the folder. I had to change the permission of the file manually.
Thanks
Luca