111 Users of your web application have requested that they should be able to set the durationof their sessions. So for example, one user might want a webapp to stay connected for an hour ratherthan the webapp's default of fifteen minutes; another user might want to stay connected for a wholeday.Furthermore, you have a special login servlet that performs user authentication and retrieves theobject from the database. You want to augment this code to set up the user's specified sessionduration.Which code snippet in the login servlet will accomplish this goal?
(A) User user = / / retrieves the user objects object from the databasesession.setDurationInterval(user.getSessionDuration());
(B) User user = / / retrieves the User objects from the databasesession.setInactiveInterval(user.getSessionDuration());
(C) User user = / / retrieves the user objects object from the databasesession.setInactiveInterval(user.get.SessionDuration());
(D) User user = / / retrieves the user objects object from the databasesession.setDuration(user.getSessionDuration());
(E) User user = / / retrieves the user objects object from the databasesession.setMaxInactiveInterval(user.getSessionDuration());

參考答案

無參考答案

內容推薦

內容推薦