移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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?()

发布日期:2020-04-10

Users of your web application have requested that ...
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());

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

CMS专题

CMS专题

去刷题
热门试题热门资讯 相关试题

暂无相关推荐~