
[单选题]
AwebapplicationusestheHttpSessionmechanismtodetermineifauserisloggedin”.Whenausersuppliesavalidusernameandpassword,anHttpSessioniscreatedforthatuser.Theuserhasaccesstotheapplicationforonly15minutesafterloggingin.Thecodemustdeterminehowlongtheuserhasbeenloggedin,andifthistimeisgreaterthan15minutes,mustdestroytheHttpSession.WhichmethodinHttpSessionisusedtoaccomplishthis?()
A.getCreationTime
B.invalidateAfter
C.getLastAccessedTime
D.getMaxInactiveInterval
