Which of the following statements is true about the Digest Authentication scheme?
The getSession() method of the HttpServletRequest interface returns the current session associated with the request, or creates a new
session if no session exists. The method has two syntaxes as follows:
public HttpSession getSession(): This method creates a new session if it does not exist.
public HttpSession getSession(boolean create): This method becomes similar to the above method if create is true, and returns the
current session if create is false. It returns null if no session exists.
Answer B is incorrect. The getSession(false) method returns a pre-existing session. It returns null if the
client has no session
associated with it.
Answer A and E are incorrect. There is no such method as getNewSession() in Java.
Earnestine
4 months agoValentin
4 months agoJonell
4 months agoQueenie
4 months agoEve
4 months agoYoulanda
5 months agoHildred
5 months agoMarnie
5 months agoNatalya
5 months agoJarod
5 months agoDorthy
5 months agoEugene
5 months agoHobert
5 months agoShanda
5 months agoVeta
6 months agoCarey
10 months agoMiss
9 months agoKing
9 months agoTheola
9 months agoWade
10 months agoAndra
9 months agoAlesia
9 months agoMerrilee
9 months agoTrevor
10 months agoGeoffrey
9 months agoSheron
10 months agoMartha
10 months agoPete
11 months agoIn
9 months agoIn
9 months agoIn
9 months agoSheridan
11 months agoCarlton
11 months agoRicarda
11 months agoCraig
11 months ago