当前位置:SCWCD(310-083)题库

问题:

[单选]

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

我旗在非公企业中开展“五星级企业党组织”创建活动,实施了星级管理。请回答五颗星的名称? 在心理咨询室里,咨询者与来访者位置的最佳角度为() 人文社会科学的发展规律有哪些? 市场细分的原则不包括()。 可衡量性原则。 可进入性原则。 集中原则。 经济性原则。 四项基本原则是坚持()、坚持()、坚持()、坚持()。

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

参考答案:

  参考解析

本题暂无解析

在线 客服