change cookie data, clear cookie after logout