node.js表示会话刷新,即10

时间:2014-03-18 10:26:33

标签: node.js

帮助我!当我在ie10中获得sessionid然后刷新sessionid 代码:

app.get('/', function(req, res){
sid=req.sessionID;
console.log(sid);
})

当我按行调试时:console.log(req.headers)

  1. IE10:
  2. { accept: 'text/html, application/xhtml+xml, */*',
    referer: 'xxx',
    'accept-language': 'en-US,en;q=0.5',
    'user-agent': 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)',
    'accept-encoding': 'gzip, deflate',
    host: 'xxx',
    dnt: '1',
    connection: 'Keep-Alive' }
    
    1. 火狐:
    2. {host: 'xxx',
      'user-agent': 'Mozilla/5.0 (Windows NT 6.2; rv:27.0) Gecko/20100101 Firefox/27.0',
      accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
      'accept-language': 'en-US,en;q=0.5',
      'accept-encoding': 'gzip, deflate',
      referer: 'xxx',
      cookie:'express.sid=s%3ApAklVxSVjtj33ODVAoTSFSSH.KUaDHAs4%2F%2BqKpSzZTmaNMwVK8w0pmqflsWBbZVnTe1M',
      connection: 'keep-alive' }
      

      在ie10

      中找不到param cookie

0 个答案:

没有答案