Whitelist cookie before close browser

add feature whitelist cookie before close browser , Edge already have this feature