4

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?

hakre
  • 193,403
  • 52
  • 435
  • 836
markus
  • 40,136
  • 23
  • 97
  • 142
  • Interesting, What version of Chrome? Side note I do/did have issues with Chrome and JavaScript. Example on stack Chrome gives an issue with clicking the star to favorite a question, Also on github.com to watch a project wouldn't work either. Don't think it's related but just saying. But with FF and IE no problem – Phill Pafford Jul 22 '11 at 14:10
  • I've found Chrome to be quite finicky about sessions, try checking your settings for cookies under Preferences > Under the Hood > Content Settings. An update to a newer version may have changed them some. – Kzqai Jul 22 '11 at 14:14
  • @Tchalvak I has nothing to do with my personal machine, all users experience this problem. – markus Jul 22 '11 at 14:19

4 Answers4

5

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.

tedstorm
  • 51
  • 1
  • 3
0

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.

Miha Trtnik
  • 236
  • 1
  • 3
  • 8
0

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

Tim Fountain
  • 33,093
  • 5
  • 41
  • 69
  • 1
    It's not this bug and there is no fix suggested. I wrote that myself and it was also me who wrote in the next comment that this does NOT fix the problem. :-) – markus Jul 22 '11 at 14:59
  • I actually don't even think this is a ZF bug. – markus Jul 22 '11 at 15:00
  • Apologies, I should have read the later comments. If you set a normal cookie with setcookie() does that disappear as well? – Tim Fountain Jul 22 '11 at 15:09
0

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.

markus
  • 40,136
  • 23
  • 97
  • 142