Node.js 在firefox上重定向后未刷新req.session

Node.js 在firefox上重定向后未刷新req.session,node.js,session,express,Node.js,Session,Express,我想在路由中设置req.session,并将其用于其他路由。但事实是,它不仅在firefox上更新(在Chrome&Co上运行良好)。我在客户端中设置对象,如下所示: <object type="text/html" id="chat-object" data="http://localhost:8080/login/?username=<?php echo $nom_joueur?>&room=<?php echo $id_partie ?>&id

我想在路由中设置req.session,并将其用于其他路由。但事实是,它不仅在firefox上更新(在Chrome&Co上运行良好)。我在客户端中设置对象,如下所示:

<object type="text/html" id="chat-object" data="http://localhost:8080/login/?username=<?php echo $nom_joueur?>&room=<?php echo $id_partie ?>&id=<?php echo $id_joueur; ?>"></object>
/login的日志为我提供:

app.get login, session = {"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"username":"Testeur 1","id_user":"2","room":"5"}
我的日志显示:

req =  {"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"username":"Testeur 1","id_user":"2"}
我真的不明白他们之间发生了什么

req =  {"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"username":"Testeur 1","id_user":"2"}