Troubles with Asynchronous Ajax Requests and PHP Sessions
I posted a few comments on why PHP has this problem, how to fix it, and what needs to be done on the client side to avoid it. I might expand on what I wrote there and turn it into a blog post.