change cookie code location