black

SCDCD(310-081)

登录

单项选择题

A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. 
The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. 
Which method in HttpSession is used to accomplish this?()

A. getCreationTime
B. invalidateAfter
C. getLastAccessedTime
D. getMaxInactiveInterval

相关考题

多项选择题 WhichtwoclassesorinterfacesprovideagetSessionmethod?()

多项选择题 Whichthe threeinterfacesneedtobedeclaredinthewebapplicationdeploymentdescriptor?()

单项选择题 Given that session is a valid HttpSession object:   Int max = session.getAttribute(“MyReallyLongName”);   Which is true?()

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064