可学答题网 > 问答 > SCWCD(310-083)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Users of your web&ensp


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

  • AUser user = // retrieve the User object from the database session.setDurationInterval(user.getSessionDuration());
  • BUser user = // retrieve the User object from the database session.setMaxDuration(user.getSessionDuration());
  • CUser user = // retrieve the User object from the database session.setInactiveInterval(user.getSessionDuration());
  • DUser user=//retrieve the User object from the database session.setDuration(user.getSessionDuratio());
  • EUser user = // retrieve the User object from the database session.setMaxInactiveInterval(user.getSessionDuration());
参考答案
参考解析:
分类:SCWCD(310-083)题库
相关推荐

1、Users in your producti

Users in your production database complain that they are getting the following error message wh...

2、Your company hosts web

Your company hosts web services in the company intranet.  The intranet is secured by a&ens...

3、Ten users at your&ensp

Ten users at your office run an accounting application on their Windows NT Workstation 4.0&ensp...

4、In your web applicatio

In your web application,you need to execute a block of code whenever the session object i...

5、Users in your producti

Users in your production database complain that they are getting the following error message wh...

6、Your web application u

Your web application uses a simple architecture in which servlets handle requests and then forw...