add cookie process flow