Shared instance of NSHTTPCookieStorage does not persist cookies

后端 未结 4 1456
-上瘾入骨i
-上瘾入骨i 2021-02-01 07:48

I\'m developing an application where the server hands me a cookie to identify the user.

My successive requests need to have that cookie to have the response that the use

4条回答
  •  余生分开走
    2021-02-01 08:29

    Is this the simulator? And using rolling cookies?

    In the simulator, cookies don't really persist as they should, because they're shared with desktop Safari. As the cookies roll over, one eventually overwrites the other.

    This isn't a problem on the device itself, where each app has its own cookie store. (And, truth be told, I haven't noticed it happening yet in Mountain Lion.)

提交回复
热议问题