Php zombie.js在回调中丢失会话

Php zombie.js在回调中丢失会话,php,node.js,session,authentication,zombie.js,Php,Node.js,Session,Authentication,Zombie.js,我正在尝试使用(尝试了2个symfony2应用程序,结果相同)对PHP应用程序进行身份验证。但回调中的浏览器会话不同。我认为这就是身份验证失败的原因 这是我的node.js代码 var Browser = require("zombie"); var assert = require("assert"); // Load the page from localhost var browser = new Browser(); browser.site = "http://localhost:8

我正在尝试使用(尝试了2个symfony2应用程序,结果相同)对PHP应用程序进行身份验证。但回调中的浏览器会话不同。我认为这就是身份验证失败的原因

这是我的node.js代码

var Browser = require("zombie");
var assert = require("assert");

// Load the page from localhost
var browser = new Browser();
browser.site = "http://localhost:8000/";
browser.loadCSS = false;
browser.debug = true;

browser.visit("app.php")
    .then(function(){
        console.log(browser.cookies.dump());

        browser.visit("app.php")
            .then(function() {
                console.log(browser.cookies.dump());
            });
    });

browser.visit("app.php")
    .then(function(){
        console.log(browser.cookies.dump());
    });
以及回调中具有不同phpssid的结果

$ node test.js    Zombie: Opened window http://localhost:8000/app.php 
Zombie: Closed window http://localhost:8000/app.php 
Zombie: Opened window http://localhost:8000/app.php 
Zombie: GET http://localhost:8000/app.php => 200
Zombie: GET http://localhost:8000/app.php => 200
Zombie: Loaded document http://localhost:8000/app.php
Zombie: GET http://localhost:8000/app.php/js/0b50c2c.js => 200
PHPSESSID=3qsqvtaseidgb5599803evt604; Domain=localhost; Path=/
[ true ]
Zombie: Closed window http://localhost:8000/app.php 
Zombie: Opened window http://localhost:8000/app.php 
PHPSESSID=3qsqvtaseidgb5599803evt604; Domain=localhost; Path=/
[ true ]
Zombie: GET http://localhost:8000/app.php => 200
Zombie: Loaded document http://localhost:8000/app.php
Zombie: GET http://localhost:8000/app.php/js/0b50c2c.js => 200
PHPSESSID=jg9h8e2orbmbfq0dr65ni8ucs7; Domain=localhost; Path=/
[ true ]
Zombie: Event loop is empty

这是zombie.js的一个bug吗?

这是由于php 5.4内置服务器造成的。 我已经升级到PHP5.5,工作起来很有魅力

我目前还没有描述这种行为的链接