Save cookie to file.