Saving cookies in shared preferences