Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is similar this one which covers Firefox, but I want to know how to do it in Chrome:

I want Chrome to clear cookies from all sites accept those from certain domains. In the Cookies section of the *Content Settings I've made following selections:

(*) Allow local data to be set (recommended)
( ) Allow local data to be set for the current session only
( ) Block sites from setting any data
[ ] Block third-party cookies and site data
[x] Clear cookies and other sites and plug-in data when I close my browser

After logged in to my preferred website(s), I find the required domains listed when I click at All cookies and site data. Let's say, I find some cookies for mysite.comand Now I click at Manage exceptions and enter these items:

Hostname Pattern                   Behavior
-------------------------------------------                         Allow                     Allow

Unfortunately, this does not seem to work, because when I close Chrome and reopen it, all cookies are gone, even those from the configured hosts.

share|improve this question
up vote 1 down vote accepted

I couldn't find a way to do what you want without extensions, and ended up installing Vanilla Cookie Manager extension (I cannot see its page today, but if you search for it, it shows at the top).

Once you configure it, it adds a small icon to your address bar that allows you to quickly add the current site to a whitelist.

share|improve this answer

From Chrome's help docs, you need to prepend the domain name with [*.] to match all subdomains (which includes www). So for your example:

Hostname Pattern                   Behavior
[*.]                     Allow
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .