I have a login screen, when the user enters username password, and logs in, a JSESSIONID
cookie is given back. Now I need to set this cookie for the subsequent POST requests the user will be performing on other screens. In Android it was as simple as using getCookieStore()
and setCookieStore()
. Are there any similar methods in objective C? I can't find any.
Right now the login works but further requests give me back JSONs saying that the session is not valid instead of giving me the data I need. Thanks for help in advance.
Asked
Active
Viewed 1,223 times
0

Kartik_Koro
- 1,277
- 1
- 11
- 23
-
This is a possible duplicate of: http://stackoverflow.com/questions/12546495/how-to-get-cookies-and-use-them-for-other-requests-like-post-ios – Widerberg Jun 13 '14 at 12:38
-
This is also a viable solution to your problem: http://stackoverflow.com/questions/1660927/iphone-make-post-request-handle-cookie?rq=1 – Widerberg Jun 13 '14 at 12:41