chrome关闭后,jsp / servlet会话ID不会更改

时间:2014-06-13 10:06:58

标签: jsp google-chrome session servlets

作为标题,
我关闭 chrome 并再次打开它,但会话ID不会改变 但 Firefox IE 工作!!!!
为什么呢?

    session = request.getSession();
    sessonId = session.getId();

    response.setContentType("text/html;charset=UTF-8");
    out = response.getWriter();
    out.print("<html><head><title>TestSession</title></head><body>");
    out.print("sessionId: "+sessonId);
    out.print("</body></html>");
    out.close();

0 个答案:

没有答案