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.
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.
解决方案 »
- 用Graphics第一次画的图会消失
- 转:迅雷亲历面经:笔试+上机+面试(完整JAVA面试题求解大讨论)
- java的克隆问题
- 怎样往一个.jar文件中的其中的一个xml里写新值啊?
- 如何跨界面传递事件
- hashtable问题!急!
- 多线程问题???如何定义程序的唯一序列号???(内详)
- 请大家帮我找错。。。
- 类构建方法问题
- 请问oracle8.05的jdbc驱动程序在哪里可以找到?
- socket通讯的小程序编译时总是报错non-static variable s1In cannot be referenced from a static context”
- StringTokenizer的怪现象
比如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)有什么错???