long getCreationTime() 
          Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.  long getLastAccessedTime() 
          Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and ed by the time the container recieved the request.  java.lang.String getId() 
          Returns a string containing the unique identifier assigned to this session.  void setMaxInactiveInterval(int interval) 
          Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.

解决方案 »

  1.   

    b) getLastAccessedTime()方法返回和这个会话有关的客户最后一次发送请求的时间,
    比如2002-7-1 00:00:00 GMT long getLastAccessedTime() 
              Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and ed by the time the container recieved the request.应该是acd吧,getLastAccessedTime() 返回的明明是个long型,怎么可能像b)里面说的2002-7-1 00:00:00 GMT这样子呢!!!
    没看api前我就觉得a,b肯定有一个不对,返回的都是时间,怎么可能一个是毫秒数,一个是日期呢。看了api,就是b)错了。
    d)有什么错???