Via Keith—here’s a problem I’m kicking myself for not covering explicitly in AJAX@localhost—Troubles with Asynchronous Ajax Requests and PHP Sessions by Marc Wandschneider.
Normally, when you write web applications in PHP, this is really not an issue, as each page request gets their own execution environment, and a user is only visiting one page at a [...]