Have you by any chance checked the applicable box in your Cookie pane?
I don't understand the question. My Cookie pane has a number of sites that are checked off as being okay to keep cookies. To date Safari has kept a history all browser site visits, whether in the Cookie list or not. Now, on closing, it wipes everything.