单项选择题
给定某servlet 程序的片段,如下:
Public void doGet(HttpServletRequest
request,Httpservletresponse response)
{
_________
}
要把session的失效时间设为30分钟,应该在下划线处插入( )
A、request.getSession().setTimeout(1800);
B、request.getSession().setTimeout(30)
C、request.getSession().setMaxInactiveInterval(1800);
D、request.getSession().setMaxInactiveInterval(30);
- A.getSession().setTimeout(1800);
B、request.getSession().setTimeout(30)
C、request.getSession().setMaxInactiveInterval(1800);
D、request.getSession().setMaxInactiveInterval(30);
点击查看答案&解析
相关考题
-
多项选择题
常见的软件开发模型包括哪几种?()
A.瀑布模型
B.演化模型
C.螺旋模型
D.喷泉模型 -
未知题型
信息系统故障的种类包括()。
A.软件故障
B.硬件故障
C.网络故障
D.不可抗力故障 -
未知题型
面向对象方法已成为软件工程技术体系中最具发展潜力的重要方法,它具有以下显著的特点()。
A.使人们更好地认识客观世界
B.能很好地适应需求变化
C.容易实现软件复用
D.系统易于维护和修改
