Setting a cookie in an iPhone App

后端 未结 4 2124
有刺的猬
有刺的猬 2020-12-03 06:14

Is it possible to set a cookie in an iPhone Application that persists, so that later when the user is in Mobile Safari, that cookie can be sent to a webserver?

4条回答
  •  孤街浪徒
    2020-12-03 06:45

    I'm new at iPhone development, but wouldn't opening a UIWebView allow your server to set a cookie on the browser so then when the user visits the site with Safari the cookie would be readable to your web server? Perhaps a hidden or small UIWebView? I can't tell what the use case is from your question.

提交回复
热议问题