题目内容

Users of your web application have requested that they should be able to set the duration of their sessions.So for example, one user might want a webapp to stay connected for an hour rather than the webapp’sdefault of fifteen minutes; another user might want to stay connected for a whole day. Furthermore, youhave a special login servlet that performs user authentication and retrieves the User object from the database. You want to augment this code to set up the user’s specified session duration. Which codesnippet in the login servlet will accomplish this goal?()

A. User user = // retrieve the User object from the database session.setDurationInterval(user.getSessionDuration());
B. User user = // retrieve the User object from the database session.setMaxDuration(user.getSessionDuration());
C. User user = // retrieve the User object from the database session.setInactiveInterval(user.getSessionDuration());
D. User user=//retrieve the User object from the database session.setDuration(user.getSessionDuratio());
E. User user = // retrieve the User object from the database session.setMaxInactiveInterval(user.getSessionDuration());

查看答案
更多问题

计量就是测量。

A. 正确
B. 错误

简述电视广告文案创作的特殊要求。

并汽后的转动设备检查包括()。

A. 检查鼓风量
B. 检查水位计
C. 检查煤层厚度
D. 检查安全阀

()能提高植物抗倒伏,抗旱、抗病的能力。

A. 氮
B. 磷
C. 钾
D. 钙

答案查题题库