The CakePHP Auth Session variable is completely missing in Chrome (on some machines)

I can go to my site, look in DebugKit> Session and see the variable "Auth" - it works fine, and everything is fine.

BUT - on two machines (out of 5-7 tested) and only in Chrome the Auth variable is completely absent. This allows the user to log in, redirect redirects ... etc. Etc.

We tried to uninstall and reinstall Chrome - we made sure that the security settings and session / cookie settings in Chrome are the same as all other computers that work ... etc. (maybe we missed one ?, but - a fresh install, so ...). And we made sure that we are all in the same version of Chrome.

At first I thought that this could be a problem with my code (and it could still be), but then we tried to log in to another Cake website on one of the "dumb" computers, and it did the same thing - t log-in.

+3
source share
2 answers

Perhaps something needed to be done with the security component. When I turned it off, they might be logged in.

Not sure what the problem is, but upgraded my site to CakePHP 2.2 beta , and now no problem .

Release Notes here .

Here are some of the release notes from stable version 2.1.2 (I was in 2.1) - those that relate to Session / Auth ... etc., which MAY have something to do with the problem:

  • AuthComponent loginRedirect , .
  • CakeSession , IE8 .
  • SessionComponent:: id() sessionid. .
0

.

, - Chrome cookie - CAKEPHP.

reset , /app/Config/core.php:

Configure::write('Session', array(
            'defaults' => 'php',
            'cookieTimeout' => 0,
            'cookie' => 'newNameSESSION',
));

"cookie", cookie . , .

+2
source

All Articles