AVPlayer and Cookie Expiration

Hi,


I have some questions about how AVPlayer handles updates of a cookie's expiration time.


We do something like this:


1) Send a GET request to server which sets authentication cookie. This cookie has a short expiration time, CookieExpiryTime.

2) Start AVPlayer.
The authentication cookie is included in the AES key request.


3) Every n minutes (where n is CookieExpiryTime/2), send new GET request to authentication server to get updated cookie expiration time.
By logging all cookies in NSHTTPCookieStorage.sharedHTTPCookieStorage() we can see that the expiration time of the cookie is updated.



The problem:

When a key is requested after the expiration time of the first cookie from 1), the cookie is no longer included in the AES key request.

But shouldn't the updated cookie (with extended expiration time) be considered?



Question 1) Does AVPlayer filter out expired cookies when doing the AES key requests?

Question 2) Does AVPlayer check NSHTTPCookieStorage.sharedHTTPCookieStorage() for updated cookies after init?


Thanks,

Anders

Replies

HI, were you able to solve you problem? or if you can provide any updates to it?