PHP: Setcookie in iOS Browser Not Working (Not Updating)

On a particular page on my website I create the cookie, which the iOS browser allows:

setcookie("$contestcookie",$encrypted_string,time()+60*60*24*2,'/','.traileraddict.com');

This works and allows the user, when visiting another page, to see what the cookie data has in store. On that page, if cookie exists with right information, I attempt to update the cookie with the exact same string (though the encrypted_string is now different):

setcookie("$contestcookie",$encrypted_string,time()+60*60*24*2,'/','.traileraddict.com');

The only catch is that, while the works on all browsers without an issue, for some reason it does not work on iOS browser. It doesn’t seem to update the cookie, leaving users high and dry (as if they didn’t complete a step).

I allow all cookies in my settings on iOS, and other users having same issue, so can’t figure out what needs to be done for mobile iOS browser.

All feedback appreciated.

Cheers
Ryan

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.