每一个session的变量名加上一个唯一的标识就可以区分不同的session,也就不会混乱,例如加上登录用户的用户名。

解决方案 »

  1.   

    Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user. The servlet container uses this interface to create a session between an HTTP client and an HTTP server. The session persists for a specified time period, across more than one connection or page request from the user. A session usually corresponds to one user, who may visit a site many times. The server can maintain a session in many ways such as using cookies or rewriting URLs.