【单选题】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 w...
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());