【单选题】
设置session的有效时间(也叫超时时间)的方法是()。
A、setMaxinactivelnterval(intinterval)
B、getAttributeName()
C、setAttrlbuteName(Strlngname,java.lang.Objectvalue)
D、getLastAccessedTime()
A、setMaxinactivelnterval(intinterval)
B、getAttributeName()
C、setAttrlbuteName(Strlngname,java.lang.Objectvalue)
D、getLastAccessedTime()
A、setAttribute()方法 B、getMaxInactiveInterval()方法 C、setMaxInactiveInterval()方法 D、setTime()方法
A、session.setAttribute(“time”,30); B、session.setMaxTime(30); C、session.getMaxInactiveInterval(); D、session.setMaxInactiveInterval(30);