Chrome, Favicons and PHP Sessions
I fixed a pretty strange bug on the WP Install Profiles web app this weekend. In Chrome only, PHP session data was lost on the first pageload after login. (Firefox and IE were fine.)
After a ton of experimenting and finding this on Stack Overflow, I renamed the favicon from
favicon.ico and the problem went away.
Interestingly, there was a
favicon.ico file on the server, even though the favicon link was to icon.ico. The problem was only fixed when the link in the
<head> was changed to
favicon.ico. From the post on SO, it seemed like Chrome just needed to not get a 404 when it checked for favicon.ico, but apparently that isn’t the case.
This is a thing.