add cookie configuration feature