试题详情
- 单项选择题 A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()
A、 getCreationTime
B、 invalidateAfter
C、 getLastAccessedTime
D、 getMaxInactiveInterval
- A
关注下方微信公众号,在线模考后查看
热门试题
- The sl:shoppin
- Which statemen
-
One of - 10. interface&
- 为了使得System.out.print
- for( int
- Which defines&e
- 将50元兑换成5元、2元和1元的方法(每
- Which two̳
- 在 myjsp.jsp&ens
- Which gets&ens
- Given a va
- Given: 3
- What will&ensp
- 在java中,引用对象变量和对象间有什么
- 为将数组myArray的长度由6改为1
- 处理一个对象事件的首选方式是哪项?()&
- 关于 JAVA 堆,下面说法错误的是()
- 1. public&ensp
- 建立Socket类的客户端需要哪些步骤?