double verify cookie when read as when set

double verify cookie when read as when set