题目内容
Usersofyourwebapplicationhaverequestedthattheyshouldbeabletosetthedurationoftheirsessions.Soforexample,oneusermightwantawebapptostayconnectedforanhourratherthanthewebapp’sdefaultoffifteenminutes;anotherusermightwanttostayconnectedforawholeday.Furthermore,youhaveaspecialloginservletthatperformsuserauthenticationandretrievestheUserobjectfromthe database.Youwanttoaugmentthiscodetosetuptheuser’sspecifiedsessionduration.
Whichcodesnippetintheloginservletwillaccomplishthisgoal?()
查看答案
搜索结果不匹配?点我反馈