1Z0-858 Web TestEngine demo

Exit VCEDump 1Z0-858 Java Enterprise Edition 5 Web Component Developer Certified Professional
Question 3 of 42
0% complete
Q3 Single choice

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's default of fifteen minutes; another user might want to stay connected for a whole day.

Furthermore, you have 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 code snippet in the login servlet will accomplish this goal?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in