I am using Codeigniter 2.1 on one of my latest sites and when accessed over 3g, cookies are becoming corrupt...
When doing some debugging to the point where the cookie is initially read I can see that it's obviously truncated, heres an example:
a:14:{
Should be
a:14:{s:10:"session_id";s:32:"ef171f95db26ad51986.......
This only happens when a cookie is read on a device connected to a mobile network, I've only been able to test three so far and to my surprise, one worked:
I'm guessing its network based and the header is being corrupted somewhere along the way. ( Possibly a proxy? )
This has been getting to me all week so any information would be awesome.
Edit: To note, the site has quite a few cookies but not large in size. We have Google Analytics, Sharethis, Uservoice and Facebook.
While I do not know what might be causing this, I have a few ideas for you which may help you find the issue which should help you to work around it. What I would do first is try to make the error consistent try just the one provider with the example above.
a:14:{
a:14:{}
? a:1
? a:14:xxx:{xxxx}
? We are looking for a pattern that might consistently be cutting of the string.Hope these troubleshooting steps help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With