Session with Google Chrome and PHP 5.3

1.6k Views Asked by At

I have an Auth component (based on Zend_Auth) which I am using in many projects on different servers and different environments. It has always worked... until now:

When I try to log in to a new project (using the same Auth component) with Google Chrome (12.0.742.122), I'm being logged out right after logging in. The problem doesn't occur with FF or IE.

Does anyone have a clue why this could be?

4

There are 4 best solutions below

0
markus On BEST ANSWER

It is a weird story. If you google the problem, you find that it sporadically turns up here and there but never systematically. There is a bug report for Zend Framework, there are issues at the Google Forums, there are similar reports in the tracking systems of Drupal and Wordpress. But somehow there are no clear answers.

In my case, the problem just went away by itself in the course of some other refactorings.

3
Tim Fountain On

Might be this bug: http://framework.zend.com/issues/browse/ZF-11502 - there is a fix suggested in the comments.

0
tedstorm On

This is not a ZF issue. As strange as it may sound, the issue is solved by adding a favicon to your site. Chrome is making a request for the favicon and invalidating the session when it gets a 404. I read one post that suggested that a special 404 configuration might help.

0
Miha Trtnik On

Just a hint ... I had the same problem. After debugging I found out there is a clash with cookie name on the main domain. It worked in FF and IE, Chrome however took a top domain cookie for ajax request and the lower one on regular request.