خرید بک لینک

Vote count: 0

I'm developing an app that logs into a HTTPS website. After authentication, the website sends a final cookie that is marked as 'Secure'.

The app works when I use defaultSessionConfiguration() for NSURLSession().

When I change one line in the app to use the backgroundSessionConfigurationWithIdentifier() then I can't proceed past the authentication stage. I do get a webpage showing that I am authenticated but subsequent requests retu the login page.

It appears that the "authentication successful cookie" is not present in the shared cookie storage.

This cookie is the only cookie that the website marks as "Secure". Note that this HTTPS website does all it transactions via HTTPS.

TL;DR What does the NSURLSession background session do differently from the default session to lose a Secure cookie??

asked 37 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 12:12

صفحه بندی