add cookie to config