Cookie call change

Modified how cookie is set