Remove old file, Fix cookie usage