欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > 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

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题