I am having issues with my CakePHP application. This seems to be happenining only in IE, and only on certain computers. It is consistent on the computers where it is happeni
Have you made sure you don't have any spaces or newlines after closing php ?> tag? Perhaps it was the first thing you checked, but from experience I know that badly closed php tags does cause sporadic problems with php session handling.
Try putting this in your AppController's beforeFilter and see if it does anything. I have a feeling the cookie settings aren't configured like you need. See here for more info.
function beforeFilter() {
$this->Cookie->domain = '.example.com';
$this->Cookie->secure = false;
}
My suggestion is that you take a look at the packets directly, to see what is happening to the cookies.
Install Wireshark on your client machine, and connect to a remote web server. (Wireshark will ignore localhost traffic.)
My suspicion is that your cookies are either getting mangled (I once had some cookies mangled by PHP!) or they are stuck (which would be IE's fault). Either way, you will have more information about what's going wrong.
As a last resort, check the user-agent string in the code for the offending / unsupported version of IE, and urge people to upgrade.
Try adding the following to your core.php file:
Configure::write('Session.checkAgent', false);
Configure::write('Session.ini',array('session.cookie_secure' => false, 'session.referer_check' => false));
These parameters should force the cookie to persist even through Google Chrome Frame. This will set both PHP and CakePHP's settings to allow cookies to persist over http and https.