Console logging cookie setting to see whats going wrong