remove useless code about cookiestore