Understanding cookie handling

35 views
Skip to first unread message

Tony D

unread,
Feb 9, 2012, 8:11:34 AM2/9/12
to ASIHTTPRequest
I am using the library to make an async REST call. The call returns a
cookie that needs to be used in subsequent requests to contain some
auth information that was obtained with the first call.

It does not appear that the framework is passing this cookie along on
the next request that I do. This request is using another request
variable, so this may be the problem?

If I were to use the same request, is doing a setURL enough to have it
be reusable? The first request to authenticate is a POST request with
JSON content and it is working since it returns the auth cookie. I
cannot get the second request to work, it keeps coming back saying you
must authenticate first.

Can attach code if desired.

Thanks,
Tony
Reply all
Reply to author
Forward
0 new messages