Reputation: 363
How can I set the session timeout using ASIHTTPRequest ?
Thanks
Upvotes: 14
Views: 12733
Reputation: 2257
You can set the default timeout for ASIHttpRequest by using:
[ASIHTTPRequest setDefaultTimeOutSeconds:20];
Is that what your looking for?
Upvotes: 40
Reputation: 6542
Given an instance of ASIHttpRequest, you can use
asiRequest.timeOutSeconds = 20;
This is useful if you only want to change the timeout from the default for one request.
Upvotes: 18